QuickBase JS SDK v2 - v2.2.2
    Preparing search index...

    Class TempTokenStrategy

    Interface that all auth strategies must implement

    Implements

    Index

    Constructors

    • Parameters

      • userToken: string | undefined
      • context: AuthContext
      • Optionaloptions: { appToken?: string; tokenLifespanMs?: number }

      Returns TempTokenStrategy

    Methods

    • Get a valid token for the given database ID

      Parameters

      • Optionaldbid: string

        The database ID (required for temp tokens)

      Returns Promise<string>

    • Handle authentication errors (e.g., refresh token on 401)

      Parameters

      • Optionaldbid: string

      Returns Promise<boolean>

      true if token was refreshed and request should be retried