@timesheet/sdk
Version:
Official TypeScript SDK for the Timesheet API
11 lines • 588 B
TypeScript
export type CodeChallengeMethod = 'S256' | 'plain';
export interface PkceCodePair {
codeVerifier: string;
codeChallenge: string;
codeChallengeMethod: CodeChallengeMethod;
}
export declare function generateCodeVerifier(length?: number): string;
export declare function generateCodeChallenge(codeVerifier: string, method?: CodeChallengeMethod): string;
export declare function generatePkceCodePair(method?: CodeChallengeMethod, verifierLength?: number): PkceCodePair;
export declare function isValidCodeVerifier(codeVerifier: string): boolean;
//# sourceMappingURL=pkce.d.ts.map