Authentication
useSession
API Reference / modelence / client / useSession
useSession():
object
Defined in: src/client/session.ts:70
useSession
is a hook that returns the current user, and in the future will also return other details about the current session.
Example
Returns
object
Name | Type | Defined in |
---|---|---|
user | null | User | src/client/session.ts:72 |