服务端凭据支持内存缓存、到期更新和并发共享签发。浏览器通过 TokenProvider 接入其 PKCE/OIDC 客户端取得的访问令牌。
查看对应 HTTP 契约export 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);下载方法索引 JSON ↓ · 来源摘要 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2