Skip to main content
function getAccessToken(): Promise<null | string>;
Gets the access token for the current user.

Returns

Promise<null | string> The access token for the current user, or null if no user is signed in.

Example

const accessToken = await getAccessToken();