Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SessionSettings

import type { SessionSettings } from "https://googleapis.deno.dev/v1/accesscontextmanager:v1.ts";

Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings.

interface SessionSettings {
maxInactivity?: number;
sessionLength?: number;
sessionLengthEnabled?: boolean;
sessionReauthMethod?:
| "SESSION_REAUTH_METHOD_UNSPECIFIED"
| "LOGIN"
| "SECURITY_KEY"
| "PASSWORD";
useOidcMaxAge?: boolean;
}

§Properties

§
maxInactivity?: number
[src]

Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.

§
sessionLength?: number
[src]

Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.

§
sessionLengthEnabled?: boolean
[src]

Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.

§
sessionReauthMethod?: "SESSION_REAUTH_METHOD_UNSPECIFIED" | "LOGIN" | "SECURITY_KEY" | "PASSWORD"
[src]

Optional. Session method when user's Google Cloud session is up.

§
useOidcMaxAge?: boolean
[src]

Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.