Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MalToken

Index

Constructors

  • new MalToken(tokenType: string, accessToken: string, refreshToken: string, expiresIn?: null | number): MalToken

Properties

access_token: string
expires_in: undefined | null | number
refresh_token: string
token_type: string

Methods

  • fromAuthorizationCode(clientId: string, code: string, codeVerifier: string): Promise<MalToken>
  • fromCredential(clientId: string, username: string, password: string): Promise<MalToken>
  • fromJsonObj(obj: { access_token: string; expires_in?: null | number; refresh_token: string; token_type: string }): MalToken
  • Get MalToken From Token JSON Object

    Parameters

    • obj: { access_token: string; expires_in?: null | number; refresh_token: string; token_type: string }
      • access_token: string
      • Optional expires_in?: null | number
      • refresh_token: string
      • token_type: string

    Returns MalToken

  • fromRefreshToken(clientId: string, refreshToken: string): Promise<MalToken>

Generated using TypeDoc