Skip to main content

Interface: AuthActions

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

Authentication actions available in the auth context.

Extended by

Properties

getAccessToken()

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

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

Get current access token (refreshes if needed)

Returns

Promise<null | string>


login()

login: (options) => Promise<void>

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

Initiate login flow

Parameters

options

LoginOptions

Returns

Promise<void>


logout()

logout: () => Promise<void>

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

Log out and clear session

Returns

Promise<void>


refresh()

refresh: () => Promise<void>

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

Refresh the access token

Returns

Promise<void>