Skip to main content
function getAccessTokenExpiration(): Promise<null | number>;
Gets the expiration time of the access token for the current user.

Returns

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

Example

const accessTokenExpiration = await getAccessTokenExpiration();