Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/auth/src/client/hooks/use-user.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/auth/src/client/hooks/use-user.ts |
| Original SHA-256 | 14a3503872d07cfd2989fe3f9894dc3a4d60f5a726d25d8c158e8a368dc2fb48 |
| Git blob SHA | 4d4ca9b6ee44b63edbd83e45dd5622a0f12550df |
| Reading-copy SHA-256 | 14a3503872d07cfd2989fe3f9894dc3a4d60f5a726d25d8c158e8a368dc2fb48 |
Recovered source transcript
Download complete source text ↓16 lines · 0.3 KB
'use client'
import { useAuth } from '../context'
/**
* Returns the normalized authenticated user state from the Clerk-backed auth hook.
*/
export function useUser() {
const auth = useAuth()
return {
isLoaded: auth.isLoaded,
isSignedIn: auth.isSignedIn,
user: auth.user
}
}