UNPKG

@withkeystone/cli

Version:

Keystone CLI - Test automation for modern web apps

26 lines 652 B
interface TokenPair { access_token: string; refresh_token: string; expires_in: number; } interface AuthConfig { apiUrl: string; appUrl: string; } export declare class PKCEAuthenticator { private codeVerifier; private codeChallenge; private state; private config; constructor(config: AuthConfig); private generateCodeVerifier; private generateCodeChallenge; private getAvailablePort; authenticate(): Promise<TokenPair>; private exchangeCodeForTokens; private getSuccessHTML; private getErrorHTML; private getWaitingHTML; } export {}; //# sourceMappingURL=PKCEAuthenticator.d.ts.map