This is unrelated to the session token. That authenticates the user to SideNet; these authenticate the tools to other services.
How it works
Passtools_auth to POST /v1/token, keyed by tool provider id:
initSidenet({ auth }) carries them implicitly.
Discovering what each provider needs
CallGET /v1/copilots/{copilotId} from your backend once. Its runtimeAuthProviders list names the fields:
Entry shape
Credentials are encrypted at rest, bound to the session, and injected server-side on every call. They are never returned, logged, or cached.
Changing a credential
Mint a new session with the updatedtools_auth and swap it in — no teardown, and the open conversation survives:
Upgrading from v2.0.123 or earlier
Upgrading from v2.0.123 or earlier
Browser-side runtime auth was removed in v2.0.124.
updateSidenetRuntimeAuth() and getSidenetRuntimeAuthProviders() no longer exist, and runtimeAuth is no longer an initSidenet() option.The
RuntimeAuthProvider type is still exported — it now describes the runtimeAuthProviders entries above. RuntimeAuthCredentials is gone.