Interface FiefTokenResponse

Object containing the tokens and related information returned by Fief after a successful authentication.

interface FiefTokenResponse {
    access_token: string;
    expires_in: number;
    id_token: string;
    refresh_token?: string;
    token_type: string;


access_token: string

Access token you can use to call the Fief API.

expires_in: number

Number of seconds after which the tokens will expire.

id_token: string

ID token containing user information.

refresh_token?: string

Token provided only if scope offline_access was granted. Allows you to retrieve fresh tokens using the Fief#authRefreshToken method.

token_type: string

Type of token, usually bearer.