Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TokenManager

Index

Constructors

constructor

Properties

Private Optional currentToken

currentToken: string

Private firestore

firestore: Firestore

Private tokenExpires

tokenExpires: number = 0

Methods

fetch

  • fetch(request: RequestAsyncRequest): Promise<{ error: string; success: false } | { success: true; value: RequestAsyncResponse }>
  • Parameters

    • request: RequestAsyncRequest

    Returns Promise<{ error: string; success: false } | { success: true; value: RequestAsyncResponse }>

getToken

  • getToken(): Promise<string>

Private refreshToken

  • refreshToken(): Promise<void>

tokenValid

  • tokenValid(): boolean

Generated using TypeDoc