Hierarchy

  • AuthFlow

Constructors

Properties

accessTokenResponse: any
authStateEmitter: AuthStateEmitter
authorizationHandler: AuthorizationRequestHandler
configuration: any
notifier: AuthorizationNotifier
onTokenExpired: undefined | (() => void)

Type declaration

    • (): void
    • Returns void

onTokenExpiredTimeout: any
refreshToken: undefined | string
signInTimer: any
tokenHandler: TokenRequestHandler

Methods

  • Cancel the authorization request and shut down the server

    Returns Promise<void>

  • Token decoder and parser

    Parameters

    • str: any

      token

    Returns any

    parsed token

  • Performs cleanup of the AuthFlow instance, clearing timers and removing listeners.

    Returns void

  • Handles onTokenExpired event

    Parameters

    • accessToken: string
    • timeLocal: number

      token request time

    Returns void

  • Parameters

    • code: string
    • codeVerifier: undefined | string

    Returns Promise<void>

  • Refresh the token

    Parameters

    • action: "refresh" | "authorization"

      the action to perform 'refresh' | 'authorization'

    • Optional code: string
    • Optional extras: any

    Returns any

Generated using TypeDoc