UNPKG

@timesheet/sdk

Version:
11 lines 588 B
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