Supplies the credential for one QWP WebSocket connection attempt.
The client calls it before every initial connect, reconnect, and failover
attempt, and keeps nothing it returns. A provider that returns the current
OIDC access token, refreshing it when it is about to expire, therefore keeps
a long-lived sender or query session authenticated across token expiry.
Time spent here counts against connectTimeoutMs.
A provider that throws fails the attempt with a QwpUpgradeError of
kind authentication whose cause is the thrown value, without trying the
remaining endpoints. Reconnects retry it with backoff unless the thrown value
carries retryable: false.
Supplies the credential for one QWP WebSocket connection attempt.
The client calls it before every initial connect, reconnect, and failover attempt, and keeps nothing it returns. A provider that returns the current OIDC access token, refreshing it when it is about to expire, therefore keeps a long-lived sender or query session authenticated across token expiry. Time spent here counts against
connectTimeoutMs.A provider that throws fails the attempt with a QwpUpgradeError of kind
authenticationwhosecauseis the thrown value, without trying the remaining endpoints. Reconnects retry it with backoff unless the thrown value carriesretryable: false.