1. Registry
  2. Packages
  3. Descope Provider
  4. API Docs
  5. SessionSettings
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope
descope logo Descope
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope

    Manages the project-level session management settings. This is a singleton resource, and its id is always the project ID.

    Create SessionSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SessionSettings(name: string, args: SessionSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def SessionSettings(resource_name: str,
                        args: SessionSettingsArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SessionSettings(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        project_id: Optional[str] = None,
                        refresh_token_response_method: Optional[str] = None,
                        session_token_cookie_domain: Optional[str] = None,
                        inactivity_time: Optional[str] = None,
                        access_key_session_token_expiration: Optional[str] = None,
                        refresh_token_cookie_domain: Optional[str] = None,
                        refresh_token_cookie_policy: Optional[str] = None,
                        enable_inactivity: Optional[bool] = None,
                        refresh_token_expiration: Optional[str] = None,
                        refresh_token_rotation: Optional[bool] = None,
                        access_key_jwt_template: Optional[str] = None,
                        session_token_cookie_policy: Optional[str] = None,
                        session_token_expiration: Optional[str] = None,
                        session_token_response_method: Optional[str] = None,
                        step_up_token_expiration: Optional[str] = None,
                        trusted_device_token_expiration: Optional[str] = None,
                        user_jwt_template: Optional[str] = None)
    func NewSessionSettings(ctx *Context, name string, args SessionSettingsArgs, opts ...ResourceOption) (*SessionSettings, error)
    public SessionSettings(string name, SessionSettingsArgs args, CustomResourceOptions? opts = null)
    public SessionSettings(String name, SessionSettingsArgs args)
    public SessionSettings(String name, SessionSettingsArgs args, CustomResourceOptions options)
    
    type: descope:SessionSettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "descope_session_settings" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SessionSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SessionSettingsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SessionSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SessionSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SessionSettingsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sessionSettingsResource = new Descope.SessionSettings("sessionSettingsResource", new()
    {
        ProjectId = "string",
        RefreshTokenResponseMethod = "string",
        SessionTokenCookieDomain = "string",
        InactivityTime = "string",
        AccessKeySessionTokenExpiration = "string",
        RefreshTokenCookieDomain = "string",
        RefreshTokenCookiePolicy = "string",
        EnableInactivity = false,
        RefreshTokenExpiration = "string",
        RefreshTokenRotation = false,
        AccessKeyJwtTemplate = "string",
        SessionTokenCookiePolicy = "string",
        SessionTokenExpiration = "string",
        SessionTokenResponseMethod = "string",
        StepUpTokenExpiration = "string",
        TrustedDeviceTokenExpiration = "string",
        UserJwtTemplate = "string",
    });
    
    example, err := descope.NewSessionSettings(ctx, "sessionSettingsResource", &descope.SessionSettingsArgs{
    	ProjectId:                       pulumi.String("string"),
    	RefreshTokenResponseMethod:      pulumi.String("string"),
    	SessionTokenCookieDomain:        pulumi.String("string"),
    	InactivityTime:                  pulumi.String("string"),
    	AccessKeySessionTokenExpiration: pulumi.String("string"),
    	RefreshTokenCookieDomain:        pulumi.String("string"),
    	RefreshTokenCookiePolicy:        pulumi.String("string"),
    	EnableInactivity:                pulumi.Bool(false),
    	RefreshTokenExpiration:          pulumi.String("string"),
    	RefreshTokenRotation:            pulumi.Bool(false),
    	AccessKeyJwtTemplate:            pulumi.String("string"),
    	SessionTokenCookiePolicy:        pulumi.String("string"),
    	SessionTokenExpiration:          pulumi.String("string"),
    	SessionTokenResponseMethod:      pulumi.String("string"),
    	StepUpTokenExpiration:           pulumi.String("string"),
    	TrustedDeviceTokenExpiration:    pulumi.String("string"),
    	UserJwtTemplate:                 pulumi.String("string"),
    })
    
    resource "descope_session_settings" "sessionSettingsResource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id                          = "string"
      refresh_token_response_method       = "string"
      session_token_cookie_domain         = "string"
      inactivity_time                     = "string"
      access_key_session_token_expiration = "string"
      refresh_token_cookie_domain         = "string"
      refresh_token_cookie_policy         = "string"
      enable_inactivity                   = false
      refresh_token_expiration            = "string"
      refresh_token_rotation              = false
      access_key_jwt_template             = "string"
      session_token_cookie_policy         = "string"
      session_token_expiration            = "string"
      session_token_response_method       = "string"
      step_up_token_expiration            = "string"
      trusted_device_token_expiration     = "string"
      user_jwt_template                   = "string"
    }
    
    var sessionSettingsResource = new SessionSettings("sessionSettingsResource", SessionSettingsArgs.builder()
        .projectId("string")
        .refreshTokenResponseMethod("string")
        .sessionTokenCookieDomain("string")
        .inactivityTime("string")
        .accessKeySessionTokenExpiration("string")
        .refreshTokenCookieDomain("string")
        .refreshTokenCookiePolicy("string")
        .enableInactivity(false)
        .refreshTokenExpiration("string")
        .refreshTokenRotation(false)
        .accessKeyJwtTemplate("string")
        .sessionTokenCookiePolicy("string")
        .sessionTokenExpiration("string")
        .sessionTokenResponseMethod("string")
        .stepUpTokenExpiration("string")
        .trustedDeviceTokenExpiration("string")
        .userJwtTemplate("string")
        .build());
    
    session_settings_resource = descope.SessionSettings("sessionSettingsResource",
        project_id="string",
        refresh_token_response_method="string",
        session_token_cookie_domain="string",
        inactivity_time="string",
        access_key_session_token_expiration="string",
        refresh_token_cookie_domain="string",
        refresh_token_cookie_policy="string",
        enable_inactivity=False,
        refresh_token_expiration="string",
        refresh_token_rotation=False,
        access_key_jwt_template="string",
        session_token_cookie_policy="string",
        session_token_expiration="string",
        session_token_response_method="string",
        step_up_token_expiration="string",
        trusted_device_token_expiration="string",
        user_jwt_template="string")
    
    const sessionSettingsResource = new descope.SessionSettings("sessionSettingsResource", {
        projectId: "string",
        refreshTokenResponseMethod: "string",
        sessionTokenCookieDomain: "string",
        inactivityTime: "string",
        accessKeySessionTokenExpiration: "string",
        refreshTokenCookieDomain: "string",
        refreshTokenCookiePolicy: "string",
        enableInactivity: false,
        refreshTokenExpiration: "string",
        refreshTokenRotation: false,
        accessKeyJwtTemplate: "string",
        sessionTokenCookiePolicy: "string",
        sessionTokenExpiration: "string",
        sessionTokenResponseMethod: "string",
        stepUpTokenExpiration: "string",
        trustedDeviceTokenExpiration: "string",
        userJwtTemplate: "string",
    });
    
    type: descope:SessionSettings
    properties:
        accessKeyJwtTemplate: string
        accessKeySessionTokenExpiration: string
        enableInactivity: false
        inactivityTime: string
        projectId: string
        refreshTokenCookieDomain: string
        refreshTokenCookiePolicy: string
        refreshTokenExpiration: string
        refreshTokenResponseMethod: string
        refreshTokenRotation: false
        sessionTokenCookieDomain: string
        sessionTokenCookiePolicy: string
        sessionTokenExpiration: string
        sessionTokenResponseMethod: string
        stepUpTokenExpiration: string
        trustedDeviceTokenExpiration: string
        userJwtTemplate: string
    

    SessionSettings Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SessionSettings resource accepts the following input properties:

    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    AccessKeyJwtTemplate string
    The ID of the JWT template used for access key session tokens.
    AccessKeySessionTokenExpiration string
    How long access key session tokens remain valid before they expire.
    EnableInactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    InactivityTime string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    RefreshTokenCookieDomain string
    The domain the refresh token cookie is restricted to.
    RefreshTokenCookiePolicy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    RefreshTokenExpiration string
    How long refresh tokens remain valid before they expire.
    RefreshTokenResponseMethod string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    RefreshTokenRotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    SessionTokenCookieDomain string
    The domain the session token cookie is restricted to.
    SessionTokenCookiePolicy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    SessionTokenExpiration string
    How long session tokens remain valid before they expire.
    SessionTokenResponseMethod string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    StepUpTokenExpiration string
    How long step up tokens remain valid before they expire.
    TrustedDeviceTokenExpiration string
    How long trusted device tokens remain valid before they expire.
    UserJwtTemplate string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    AccessKeyJwtTemplate string
    The ID of the JWT template used for access key session tokens.
    AccessKeySessionTokenExpiration string
    How long access key session tokens remain valid before they expire.
    EnableInactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    InactivityTime string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    RefreshTokenCookieDomain string
    The domain the refresh token cookie is restricted to.
    RefreshTokenCookiePolicy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    RefreshTokenExpiration string
    How long refresh tokens remain valid before they expire.
    RefreshTokenResponseMethod string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    RefreshTokenRotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    SessionTokenCookieDomain string
    The domain the session token cookie is restricted to.
    SessionTokenCookiePolicy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    SessionTokenExpiration string
    How long session tokens remain valid before they expire.
    SessionTokenResponseMethod string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    StepUpTokenExpiration string
    How long step up tokens remain valid before they expire.
    TrustedDeviceTokenExpiration string
    How long trusted device tokens remain valid before they expire.
    UserJwtTemplate string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    project_id string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    access_key_jwt_template string
    The ID of the JWT template used for access key session tokens.
    access_key_session_token_expiration string
    How long access key session tokens remain valid before they expire.
    enable_inactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    inactivity_time string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    refresh_token_cookie_domain string
    The domain the refresh token cookie is restricted to.
    refresh_token_cookie_policy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refresh_token_expiration string
    How long refresh tokens remain valid before they expire.
    refresh_token_response_method string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refresh_token_rotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    session_token_cookie_domain string
    The domain the session token cookie is restricted to.
    session_token_cookie_policy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    session_token_expiration string
    How long session tokens remain valid before they expire.
    session_token_response_method string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    step_up_token_expiration string
    How long step up tokens remain valid before they expire.
    trusted_device_token_expiration string
    How long trusted device tokens remain valid before they expire.
    user_jwt_template string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    accessKeyJwtTemplate String
    The ID of the JWT template used for access key session tokens.
    accessKeySessionTokenExpiration String
    How long access key session tokens remain valid before they expire.
    enableInactivity Boolean
    Whether to detect idle sessions and close them on behalf of the user.
    inactivityTime String
    How long a session can be inactive before it's closed, when enableInactivity is set.
    refreshTokenCookieDomain String
    The domain the refresh token cookie is restricted to.
    refreshTokenCookiePolicy String
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refreshTokenExpiration String
    How long refresh tokens remain valid before they expire.
    refreshTokenResponseMethod String
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refreshTokenRotation Boolean
    Whether to rotate the refresh token every time it's used to refresh the session.
    sessionTokenCookieDomain String
    The domain the session token cookie is restricted to.
    sessionTokenCookiePolicy String
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    sessionTokenExpiration String
    How long session tokens remain valid before they expire.
    sessionTokenResponseMethod String
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    stepUpTokenExpiration String
    How long step up tokens remain valid before they expire.
    trustedDeviceTokenExpiration String
    How long trusted device tokens remain valid before they expire.
    userJwtTemplate String
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    projectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    accessKeyJwtTemplate string
    The ID of the JWT template used for access key session tokens.
    accessKeySessionTokenExpiration string
    How long access key session tokens remain valid before they expire.
    enableInactivity boolean
    Whether to detect idle sessions and close them on behalf of the user.
    inactivityTime string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    refreshTokenCookieDomain string
    The domain the refresh token cookie is restricted to.
    refreshTokenCookiePolicy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refreshTokenExpiration string
    How long refresh tokens remain valid before they expire.
    refreshTokenResponseMethod string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refreshTokenRotation boolean
    Whether to rotate the refresh token every time it's used to refresh the session.
    sessionTokenCookieDomain string
    The domain the session token cookie is restricted to.
    sessionTokenCookiePolicy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    sessionTokenExpiration string
    How long session tokens remain valid before they expire.
    sessionTokenResponseMethod string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    stepUpTokenExpiration string
    How long step up tokens remain valid before they expire.
    trustedDeviceTokenExpiration string
    How long trusted device tokens remain valid before they expire.
    userJwtTemplate string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    project_id str
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    access_key_jwt_template str
    The ID of the JWT template used for access key session tokens.
    access_key_session_token_expiration str
    How long access key session tokens remain valid before they expire.
    enable_inactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    inactivity_time str
    How long a session can be inactive before it's closed, when enableInactivity is set.
    refresh_token_cookie_domain str
    The domain the refresh token cookie is restricted to.
    refresh_token_cookie_policy str
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refresh_token_expiration str
    How long refresh tokens remain valid before they expire.
    refresh_token_response_method str
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refresh_token_rotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    session_token_cookie_domain str
    The domain the session token cookie is restricted to.
    session_token_cookie_policy str
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    session_token_expiration str
    How long session tokens remain valid before they expire.
    session_token_response_method str
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    step_up_token_expiration str
    How long step up tokens remain valid before they expire.
    trusted_device_token_expiration str
    How long trusted device tokens remain valid before they expire.
    user_jwt_template str
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    accessKeyJwtTemplate String
    The ID of the JWT template used for access key session tokens.
    accessKeySessionTokenExpiration String
    How long access key session tokens remain valid before they expire.
    enableInactivity Boolean
    Whether to detect idle sessions and close them on behalf of the user.
    inactivityTime String
    How long a session can be inactive before it's closed, when enableInactivity is set.
    refreshTokenCookieDomain String
    The domain the refresh token cookie is restricted to.
    refreshTokenCookiePolicy String
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refreshTokenExpiration String
    How long refresh tokens remain valid before they expire.
    refreshTokenResponseMethod String
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refreshTokenRotation Boolean
    Whether to rotate the refresh token every time it's used to refresh the session.
    sessionTokenCookieDomain String
    The domain the session token cookie is restricted to.
    sessionTokenCookiePolicy String
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    sessionTokenExpiration String
    How long session tokens remain valid before they expire.
    sessionTokenResponseMethod String
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    stepUpTokenExpiration String
    How long step up tokens remain valid before they expire.
    trustedDeviceTokenExpiration String
    How long trusted device tokens remain valid before they expire.
    userJwtTemplate String
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SessionSettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SessionSettings Resource

    Get an existing SessionSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SessionSettingsState, opts?: CustomResourceOptions): SessionSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key_jwt_template: Optional[str] = None,
            access_key_session_token_expiration: Optional[str] = None,
            enable_inactivity: Optional[bool] = None,
            inactivity_time: Optional[str] = None,
            project_id: Optional[str] = None,
            refresh_token_cookie_domain: Optional[str] = None,
            refresh_token_cookie_policy: Optional[str] = None,
            refresh_token_expiration: Optional[str] = None,
            refresh_token_response_method: Optional[str] = None,
            refresh_token_rotation: Optional[bool] = None,
            session_token_cookie_domain: Optional[str] = None,
            session_token_cookie_policy: Optional[str] = None,
            session_token_expiration: Optional[str] = None,
            session_token_response_method: Optional[str] = None,
            step_up_token_expiration: Optional[str] = None,
            trusted_device_token_expiration: Optional[str] = None,
            user_jwt_template: Optional[str] = None) -> SessionSettings
    func GetSessionSettings(ctx *Context, name string, id IDInput, state *SessionSettingsState, opts ...ResourceOption) (*SessionSettings, error)
    public static SessionSettings Get(string name, Input<string> id, SessionSettingsState? state, CustomResourceOptions? opts = null)
    public static SessionSettings get(String name, Output<String> id, SessionSettingsState state, CustomResourceOptions options)
    resources:  existingSessionSettings:    type: descope:SessionSettings    get:      id: ${id}
    import {
      to = descope_session_settings.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state SessionSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state SessionSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state SessionSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state SessionSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    AccessKeyJwtTemplate string
    The ID of the JWT template used for access key session tokens.
    AccessKeySessionTokenExpiration string
    How long access key session tokens remain valid before they expire.
    EnableInactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    InactivityTime string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    RefreshTokenCookieDomain string
    The domain the refresh token cookie is restricted to.
    RefreshTokenCookiePolicy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    RefreshTokenExpiration string
    How long refresh tokens remain valid before they expire.
    RefreshTokenResponseMethod string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    RefreshTokenRotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    SessionTokenCookieDomain string
    The domain the session token cookie is restricted to.
    SessionTokenCookiePolicy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    SessionTokenExpiration string
    How long session tokens remain valid before they expire.
    SessionTokenResponseMethod string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    StepUpTokenExpiration string
    How long step up tokens remain valid before they expire.
    TrustedDeviceTokenExpiration string
    How long trusted device tokens remain valid before they expire.
    UserJwtTemplate string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    AccessKeyJwtTemplate string
    The ID of the JWT template used for access key session tokens.
    AccessKeySessionTokenExpiration string
    How long access key session tokens remain valid before they expire.
    EnableInactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    InactivityTime string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    RefreshTokenCookieDomain string
    The domain the refresh token cookie is restricted to.
    RefreshTokenCookiePolicy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    RefreshTokenExpiration string
    How long refresh tokens remain valid before they expire.
    RefreshTokenResponseMethod string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    RefreshTokenRotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    SessionTokenCookieDomain string
    The domain the session token cookie is restricted to.
    SessionTokenCookiePolicy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    SessionTokenExpiration string
    How long session tokens remain valid before they expire.
    SessionTokenResponseMethod string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    StepUpTokenExpiration string
    How long step up tokens remain valid before they expire.
    TrustedDeviceTokenExpiration string
    How long trusted device tokens remain valid before they expire.
    UserJwtTemplate string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    access_key_jwt_template string
    The ID of the JWT template used for access key session tokens.
    access_key_session_token_expiration string
    How long access key session tokens remain valid before they expire.
    enable_inactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    inactivity_time string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    project_id string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    refresh_token_cookie_domain string
    The domain the refresh token cookie is restricted to.
    refresh_token_cookie_policy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refresh_token_expiration string
    How long refresh tokens remain valid before they expire.
    refresh_token_response_method string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refresh_token_rotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    session_token_cookie_domain string
    The domain the session token cookie is restricted to.
    session_token_cookie_policy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    session_token_expiration string
    How long session tokens remain valid before they expire.
    session_token_response_method string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    step_up_token_expiration string
    How long step up tokens remain valid before they expire.
    trusted_device_token_expiration string
    How long trusted device tokens remain valid before they expire.
    user_jwt_template string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    accessKeyJwtTemplate String
    The ID of the JWT template used for access key session tokens.
    accessKeySessionTokenExpiration String
    How long access key session tokens remain valid before they expire.
    enableInactivity Boolean
    Whether to detect idle sessions and close them on behalf of the user.
    inactivityTime String
    How long a session can be inactive before it's closed, when enableInactivity is set.
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    refreshTokenCookieDomain String
    The domain the refresh token cookie is restricted to.
    refreshTokenCookiePolicy String
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refreshTokenExpiration String
    How long refresh tokens remain valid before they expire.
    refreshTokenResponseMethod String
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refreshTokenRotation Boolean
    Whether to rotate the refresh token every time it's used to refresh the session.
    sessionTokenCookieDomain String
    The domain the session token cookie is restricted to.
    sessionTokenCookiePolicy String
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    sessionTokenExpiration String
    How long session tokens remain valid before they expire.
    sessionTokenResponseMethod String
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    stepUpTokenExpiration String
    How long step up tokens remain valid before they expire.
    trustedDeviceTokenExpiration String
    How long trusted device tokens remain valid before they expire.
    userJwtTemplate String
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    accessKeyJwtTemplate string
    The ID of the JWT template used for access key session tokens.
    accessKeySessionTokenExpiration string
    How long access key session tokens remain valid before they expire.
    enableInactivity boolean
    Whether to detect idle sessions and close them on behalf of the user.
    inactivityTime string
    How long a session can be inactive before it's closed, when enableInactivity is set.
    projectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    refreshTokenCookieDomain string
    The domain the refresh token cookie is restricted to.
    refreshTokenCookiePolicy string
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refreshTokenExpiration string
    How long refresh tokens remain valid before they expire.
    refreshTokenResponseMethod string
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refreshTokenRotation boolean
    Whether to rotate the refresh token every time it's used to refresh the session.
    sessionTokenCookieDomain string
    The domain the session token cookie is restricted to.
    sessionTokenCookiePolicy string
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    sessionTokenExpiration string
    How long session tokens remain valid before they expire.
    sessionTokenResponseMethod string
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    stepUpTokenExpiration string
    How long step up tokens remain valid before they expire.
    trustedDeviceTokenExpiration string
    How long trusted device tokens remain valid before they expire.
    userJwtTemplate string
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    access_key_jwt_template str
    The ID of the JWT template used for access key session tokens.
    access_key_session_token_expiration str
    How long access key session tokens remain valid before they expire.
    enable_inactivity bool
    Whether to detect idle sessions and close them on behalf of the user.
    inactivity_time str
    How long a session can be inactive before it's closed, when enableInactivity is set.
    project_id str
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    refresh_token_cookie_domain str
    The domain the refresh token cookie is restricted to.
    refresh_token_cookie_policy str
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refresh_token_expiration str
    How long refresh tokens remain valid before they expire.
    refresh_token_response_method str
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refresh_token_rotation bool
    Whether to rotate the refresh token every time it's used to refresh the session.
    session_token_cookie_domain str
    The domain the session token cookie is restricted to.
    session_token_cookie_policy str
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    session_token_expiration str
    How long session tokens remain valid before they expire.
    session_token_response_method str
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    step_up_token_expiration str
    How long step up tokens remain valid before they expire.
    trusted_device_token_expiration str
    How long trusted device tokens remain valid before they expire.
    user_jwt_template str
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).
    accessKeyJwtTemplate String
    The ID of the JWT template used for access key session tokens.
    accessKeySessionTokenExpiration String
    How long access key session tokens remain valid before they expire.
    enableInactivity Boolean
    Whether to detect idle sessions and close them on behalf of the user.
    inactivityTime String
    How long a session can be inactive before it's closed, when enableInactivity is set.
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    refreshTokenCookieDomain String
    The domain the refresh token cookie is restricted to.
    refreshTokenCookiePolicy String
    The SameSite cookie policy for the refresh token cookie, either strict, lax or none.
    refreshTokenExpiration String
    How long refresh tokens remain valid before they expire.
    refreshTokenResponseMethod String
    How refresh tokens are managed by the Descope SDKs, either responseBody or cookies.
    refreshTokenRotation Boolean
    Whether to rotate the refresh token every time it's used to refresh the session.
    sessionTokenCookieDomain String
    The domain the session token cookie is restricted to.
    sessionTokenCookiePolicy String
    The SameSite cookie policy for the session token cookie, either strict, lax or none.
    sessionTokenExpiration String
    How long session tokens remain valid before they expire.
    sessionTokenResponseMethod String
    How session tokens are managed by the Descope SDKs, either responseBody or cookies.
    stepUpTokenExpiration String
    How long step up tokens remain valid before they expire.
    trustedDeviceTokenExpiration String
    How long trusted device tokens remain valid before they expire.
    userJwtTemplate String
    The ID of the JWT template used for user session tokens (e.g. descope_jwt_template.example.id).

    Package Details

    Repository
    descope descope/pulumi-descope
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the descope Terraform Provider.
    descope logo Descope
    Viewing docs for Descope v1.0.1
    published on Sunday, Oct 11, 2026 by Descope

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial