Options
All
  • Public
  • Public/Protected
  • All
Menu

TokenDecoder based on jsonwebtoken package to be used with JWT Token. It check expiration dates from both server response and JWT exp claim, and supports decoding of the JWT token.

It should be given to Auth constructor through AuthOptions.accessTokenDecoder.

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected offset

offset: number

Methods

decode

  • decode(token: Token): any

isExpired

  • isExpired(token: Token, offset?: number): boolean

Legend

  • Function
  • Function with type parameter
  • Type alias
  • Class
  • Class with type parameter
  • Method
  • Interface
  • Interface with type parameter
  • Inherited constructor

Generated using TypeDoc