Skip to main content

Interface: AuthActions

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

Authentication actions available in the auth context.

Extended by

Properties

getAccessToken()

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

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

Get current access token (refreshes if needed)

Returns

Promise<null | string>


login()

login: (options) => Promise<void>

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

Initiate login flow

Parameters

options

LoginOptions

Returns

Promise<void>


logout()

logout: () => Promise<void>

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

Log out and clear session

Returns

Promise<void>


refresh()

refresh: () => Promise<void>

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

Refresh the access token

Returns

Promise<void>