@orangecheck/auth-client / OcSessionState
Interface: OcSessionState
Defined in: src/types.ts:31
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-account"></a> account | OcAccount | null | - | src/types.ts:33 |
<a id="property-error"></a> error | Error | null | null while loading; an Error instance when status === 'error'. | src/types.ts:35 |
<a id="property-refresh"></a> refresh | () => Promise<void> | Re-fetch the session. Useful after sign-in/sign-out happens elsewhere. | src/types.ts:37 |
<a id="property-signinurl"></a> signInUrl | string | URL to navigate to for sign-in on the auth host. | src/types.ts:41 |
<a id="property-signout"></a> signOut | () => Promise<void> | Trigger a sign-out. Resolves once the cookie has been cleared. | src/types.ts:39 |
<a id="property-status"></a> status | OcSessionStatus | - | src/types.ts:32 |