@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
55 lines • 2.14 kB
TypeScript
import { Identity } from './Identity';
import { ContinueWith } from './ContinueWith';
import { Session } from './Session';
/**
* The Response for Registration Flows via API
* @export
* @interface SuccessfulNativeRegistration
*/
export interface SuccessfulNativeRegistration {
/**
* Contains a list of actions, that could follow this flow
*
* It can, for example, this will contain a reference to the verification flow, created as part of the user's
* registration or the token of the session.
* @type {Array<ContinueWith>}
* @memberof SuccessfulNativeRegistration
*/
continue_with?: Array<ContinueWith>;
/**
*
* @type {Identity}
* @memberof SuccessfulNativeRegistration
*/
identity: Identity;
/**
*
* @type {Session}
* @memberof SuccessfulNativeRegistration
*/
session?: Session;
/**
* The Session Token
*
* This field is only set when the session hook is configured as a post-registration hook.
*
* A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization
* Header:
*
* Authorization: bearer ${session-token}
*
* The session token is only issued for API flows, not for Browser flows!
* @type {string}
* @memberof SuccessfulNativeRegistration
*/
session_token?: string;
}
/**
* Check if a given object implements the SuccessfulNativeRegistration interface.
*/
export declare function instanceOfSuccessfulNativeRegistration(value: object): value is SuccessfulNativeRegistration;
export declare function SuccessfulNativeRegistrationFromJSON(json: any): SuccessfulNativeRegistration;
export declare function SuccessfulNativeRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessfulNativeRegistration;
export declare function SuccessfulNativeRegistrationToJSON(json: any): SuccessfulNativeRegistration;
export declare function SuccessfulNativeRegistrationToJSONTyped(value?: SuccessfulNativeRegistration | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=SuccessfulNativeRegistration.d.ts.map