UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

85 lines 2.79 kB
import { OAuth2ConsentRequest } from './OAuth2ConsentRequest'; import { AcceptOAuth2ConsentRequestSession } from './AcceptOAuth2ConsentRequestSession'; import { OAuth2ConsentSessionExpiresAt } from './OAuth2ConsentSessionExpiresAt'; /** * A completed OAuth 2.0 Consent Session. * @export * @interface OAuth2ConsentSession */ export interface OAuth2ConsentSession { /** * * @type {OAuth2ConsentRequest} * @memberof OAuth2ConsentSession */ consent_request?: OAuth2ConsentRequest; /** * ConsentRequestID is the identifier of the consent request that initiated this consent session. * @type {string} * @memberof OAuth2ConsentSession */ consent_request_id?: string; /** * * @type {object} * @memberof OAuth2ConsentSession */ context?: object; /** * * @type {OAuth2ConsentSessionExpiresAt} * @memberof OAuth2ConsentSession */ expires_at?: OAuth2ConsentSessionExpiresAt; /** * * @type {Array<string>} * @memberof OAuth2ConsentSession */ grant_access_token_audience?: Array<string>; /** * * @type {Array<string>} * @memberof OAuth2ConsentSession */ grant_scope?: Array<string>; /** * * @type {Date} * @memberof OAuth2ConsentSession */ handled_at?: Date; /** * Remember Consent * * Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same * client asks the same user for the same, or a subset of, scope. * @type {boolean} * @memberof OAuth2ConsentSession */ remember?: boolean; /** * Remember Consent For * * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the * authorization will be remembered indefinitely. * @type {number} * @memberof OAuth2ConsentSession */ remember_for?: number; /** * * @type {AcceptOAuth2ConsentRequestSession} * @memberof OAuth2ConsentSession */ session?: AcceptOAuth2ConsentRequestSession; } /** * Check if a given object implements the OAuth2ConsentSession interface. */ export declare function instanceOfOAuth2ConsentSession(value: object): value is OAuth2ConsentSession; export declare function OAuth2ConsentSessionFromJSON(json: any): OAuth2ConsentSession; export declare function OAuth2ConsentSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuth2ConsentSession; export declare function OAuth2ConsentSessionToJSON(json: any): OAuth2ConsentSession; export declare function OAuth2ConsentSessionToJSONTyped(value?: OAuth2ConsentSession | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=OAuth2ConsentSession.d.ts.map