download
raw
904 Bytes
import type { OAuth2Tokens } from "./oauth2.js";
export declare class OAuth2Client {
clientId: string;
private clientPassword;
private redirectURI;
constructor(clientId: string, clientPassword: string | null, redirectURI: string | null);
createAuthorizationURL(authorizationEndpoint: string, state: string, scopes: string[]): URL;
createAuthorizationURLWithPKCE(authorizationEndpoint: string, state: string, codeChallengeMethod: CodeChallengeMethod, codeVerifier: string, scopes: string[]): URL;
validateAuthorizationCode(tokenEndpoint: string, code: string, codeVerifier: string | null): Promise<OAuth2Tokens>;
refreshAccessToken(tokenEndpoint: string, refreshToken: string, scopes: string[]): Promise<OAuth2Tokens>;
revokeToken(tokenRevocationEndpoint: string, token: string): Promise<void>;
}
export declare enum CodeChallengeMethod {
S256 = 0,
Plain = 1
}

Xet Storage Details

Size:
904 Bytes
·
Xet hash:
0153b7c77d763390fe3d5cb4c89710e5cfeddfe7456f1e96c7ce8366c9afc331

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.