Skip to main content

Interface: AuthActions

Defined in: web/lib/auth/types.ts:138

Authentication actions available in the auth context.

Extended by​

Properties​

getAccessToken()​

getAccessToken: () => Promise<null | string>

Defined in: web/lib/auth/types.ts:149

Get current access token (refreshes if needed)

Returns​

Promise<null | string>


login()​

login: (options) => Promise<void>

Defined in: web/lib/auth/types.ts:140

Initiate login flow

Parameters​

options​

LoginOptions

Returns​

Promise<void>


logout()​

logout: () => Promise<void>

Defined in: web/lib/auth/types.ts:143

Log out and clear session

Returns​

Promise<void>


refresh()​

refresh: () => Promise<void>

Defined in: web/lib/auth/types.ts:146

Refresh the access token

Returns​

Promise<void>