TYPESCRIPT / JAVASCRIPT
OAuth credentials
Method reference generated from the public package declarations · v0.3.0
Backend client credentials with in-memory caching, expiry renewal and shared issuance. Browser applications supply their PKCE/OIDC client's access token through TokenProvider.
Related HTTP contractexport function createClientCredentialsTokenProvider(options: ClientCredentialsOptions): ClientCredentialsTokenProvider;export type ClientCredentialsOptions = {
tokenEndpoint: string;
clientId: string;
clientSecret?: string | (() => string | Promise<string>);
clientAuthentication?: "client_secret_basic" | "client_secret_post" | "private_key_jwt";
clientAssertion?: () => string | Promise<string>;
scopes?: readonly string[];
resource?: string;
fetch?: typeof globalThis.fetch;
timeoutMs?: number;
clockSkewMs?: number;
};export type ClientCredentialsTokenProvider = {
(context?: TokenProviderContext): Promise<string>;
invalidate(): void;
};OrbitSpaceOAuthError
classexport class OrbitSpaceOAuthErrorconstructor
constructor(status: number, code: string, requestId?: string);Download method index JSON ↓ · Source digest 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2