File

projects/core/src/auth/user-auth/models/auth-token.model.ts

Description

Structure of token used by the OAuth lib and across UserAuthModule.

Index

Properties

Properties

access_token
access_token: string
Type : string

Token used for Authorization header.

access_token_stored_at
access_token_stored_at: string
Type : string

Time when access_token was fetched from OAuth server and saved.

expires_at
expires_at: string
Type : string
Optional

Time when access_token expires.

granted_scopes
granted_scopes: string[]
Type : string[]
Optional

Scopes granted by the OAuth server.

refresh_token
refresh_token: string
Type : string
Optional

Token to refresh the access_token when it expires.

token_type
token_type: string
Type : string
Optional

Type of the access_token. Most often Bearer.

export interface AuthToken {
  /**
   * Token used for `Authorization` header.
   */
  access_token: string;
  /**
   * Token to refresh the `access_token` when it expires.
   */
  refresh_token?: string;
  /**
   * Time when `access_token` expires.
   */
  expires_at?: string;
  /**
   * Scopes granted by the OAuth server.
   */
  granted_scopes?: string[];
  /**
   * Time when `access_token` was fetched from OAuth server and saved.
   */
  access_token_stored_at: string;
  /**
   * Type of the `access_token`. Most often `Bearer`.
   */
  token_type?: string;
}

result-matching ""

    No results matching ""