Sign in

Type: MonoCloudStateCookieOptions

Configuration options for the authentication state cookie.

Extends

Properties

PropertyTypeDescription
domain?stringOptional domain scope for the cookie.
httpOnlybooleanIndicates whether the cookie is accessible only via HTTP requests. Helps mitigate XSS attacks by preventing client-side JavaScript access. Always enforced as true for state cookies.
namestringThe cookie name. Defaults to "session" for session cookies and "state" for state cookies.
pathstringThe URL path for which the cookie is valid.
sameSiteSameSiteValuesThe SameSite policy applied to the cookie. Controls cross-site request behavior and CSRF protection.
securebooleanIndicates whether the cookie should only be transmitted over HTTPS. If not explicitly provided, this value is automatically inferred from the application URL scheme.
© 2024 MonoCloud. All rights reserved.