🤖 Merge PR #65590 update(auth0-js): cookieDomain configuration option by @peterblazejewicz

https://github.com/auth0/auth0.js/pull/1304/files
https://github.com/auth0/auth0.js/releases/tag/v9.21.0

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz)
2023-06-06 21:57:02 +02:00
committed by GitHub
parent 8112410b1e
commit d37359ad71
2 changed files with 11 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ const webAuth = new auth0.WebAuth({
redirectUri: "http://example.com/redirect",
scope: "openid offline_access",
audience: "http://audience.com/aud",
cookieDomain: "mine.auth0.com",
leeway: 50,
jwksURI: "./well-known/jwks.json",
overrides: {

View File

@@ -1,4 +1,4 @@
// Type definitions for Auth0.js 9.14
// Type definitions for Auth0.js 9.21
// Project: https://github.com/auth0/auth0.js
// Definitions by: Adrian Chia <https://github.com/adrianchia>
// Matt Durrant <https://github.com/mdurrant>
@@ -8,7 +8,9 @@
// Tyler Lindell <https://github.com/tylerlindell>
// Henri Kinnunen <https://github.com/hequ>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference lib="dom" />
export as namespace auth0;
export class Authentication {
@@ -547,6 +549,13 @@ export interface AuthOptions {
redirectUri?: string | undefined;
scope?: string | undefined;
audience?: string | undefined;
/**
* The domain the cookie is accessible from.
* If not set, the cookie is scoped to the current domain, including the subdomain.
* To keep a user logged in across multiple subdomains set this to your top-level domain
* and prefixed with a `.` (eg: `.example.com`)
*/
cookieDomain?: string | undefined;
/**
* maximum elapsed time in seconds since the last time the user
* was actively authenticated by the authorization server.