Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Token

Hierarchy

  • Token

Index

Constructors

constructor

  • new Token(token: string): Token
  • Create a Token instance.

    Parameters

    • token: string

    Returns Token

Methods

getExpiresAt

  • getExpiresAt(): number
  • Returns the expiration date in milliseconds.

    Returns number

getParsedToken

  • getParsedToken(): any
  • Returns the parsed token as a JSON object.

    Returns any

getToken

  • getToken(): string
  • Returnt the raw token as a hex string.

    Returns string