@glamtime/oauth-oidc-client
Version:
Secure your Angular app using the latest standards for OpenID Connect & OAuth2. Provides support for token refresh, all modern OIDC Identity Providers and more.
18 lines (17 loc) • 620 B
TypeScript
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class OAuthCryptoService {
private _document;
constructor(_document: any);
generateState(): string;
/**
* Generate code verifier
* See also: https://tools.ietf.org/html/rfc7636#section-4.1
*/
generatePKCECodeVerifier(): string;
generatePKCECodeChallenge(codeVerifier: string): Observable<string>;
private _getCrypto;
private _base64UrlEncode;
static ɵfac: i0.ɵɵFactoryDeclaration<OAuthCryptoService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OAuthCryptoService>;
}