INNER CODE UNIT · TypeScript

AuthCognito

aws-devtools-labs/aws-blocks · packages/bb-auth-cognito/src/index.ts:207

export class AuthCognito<const O extends AuthCognitoMockOptions = AuthCognitoMockOptions>
	extends Scope
	implements BlocksAuth
{
	public readonly options: O;
	private readonly sessions: SessionStore;
	private readonly stateFile: string;
	private readonly sessionDuration: number;
	private readonly crossDomain: boolean;
	private state: PersistedState;
	private challenges: Map<string, ChallengeRecord>;
	/**
	 * The full admin surface, built once against the live `this.state`. Typed
	 * against the wide base so the single cast in `get admin()` is the only
	 * place the generic projection is applied. `actions` scoping is a
	 * compile-time concern (the type hides ungranted methods); at runtime
	 * every method exists.
	 */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…