@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
63 lines • 2.39 kB
TypeScript
import { AuthenticatorAssuranceLevel } from './AuthenticatorAssuranceLevel';
/**
* A singular authenticator used during authentication / login.
* @export
* @interface SessionAuthenticationMethod
*/
export interface SessionAuthenticationMethod {
/**
*
* @type {AuthenticatorAssuranceLevel}
* @memberof SessionAuthenticationMethod
*/
aal?: AuthenticatorAssuranceLevel;
/**
* When the authentication challenge was completed.
* @type {Date}
* @memberof SessionAuthenticationMethod
*/
completed_at?: Date;
/**
*
* @type {string}
* @memberof SessionAuthenticationMethod
*/
method?: SessionAuthenticationMethodMethodEnum;
/**
* The Organization id used for authentication
* @type {string}
* @memberof SessionAuthenticationMethod
*/
organization?: string;
/**
* OIDC or SAML provider id used for authentication
* @type {string}
* @memberof SessionAuthenticationMethod
*/
provider?: string;
}
/**
* @export
*/
export declare const SessionAuthenticationMethodMethodEnum: {
readonly LinkRecovery: "link_recovery";
readonly CodeRecovery: "code_recovery";
readonly Password: "password";
readonly Code: "code";
readonly Totp: "totp";
readonly Oidc: "oidc";
readonly Webauthn: "webauthn";
readonly LookupSecret: "lookup_secret";
readonly V06LegacySession: "v0.6_legacy_session";
readonly UnknownDefaultOpenApi: "11184809";
};
export type SessionAuthenticationMethodMethodEnum = typeof SessionAuthenticationMethodMethodEnum[keyof typeof SessionAuthenticationMethodMethodEnum];
/**
* Check if a given object implements the SessionAuthenticationMethod interface.
*/
export declare function instanceOfSessionAuthenticationMethod(value: object): value is SessionAuthenticationMethod;
export declare function SessionAuthenticationMethodFromJSON(json: any): SessionAuthenticationMethod;
export declare function SessionAuthenticationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionAuthenticationMethod;
export declare function SessionAuthenticationMethodToJSON(json: any): SessionAuthenticationMethod;
export declare function SessionAuthenticationMethodToJSONTyped(value?: SessionAuthenticationMethod | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=SessionAuthenticationMethod.d.ts.map