QuestDB JavaScript Client - v5.0.0
    Preparing search index...

    Type Alias QwpBrowserSessionAuthentication

    QwpBrowserSessionAuthentication:
        | { password: string; type: "basic"; username: string }
        | { token: string; type: "bearer" }

    A browser credential: HTTP Basic, or a QuestDB REST token or OIDC access token sent as a Bearer token. sessionBootstrap exchanges it over REST for QuestDB's HttpOnly session cookies; auth sends it with every QWP WebSocket upgrade instead.

    Type declaration

    • { password: string; type: "basic"; username: string }
      • password: string
      • type: "basic"

        HTTP Basic authentication.

      • username: string
    • { token: string; type: "bearer" }
      • token: string
      • type: "bearer"

        QuestDB REST token or OIDC access token.