Socket
Socket
Sign inDemoInstall

@auth0/auth0-spa-js

Package Overview
Dependencies
7
Maintainers
47
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.22.2 to 1.22.3

4

dist/typings/storage.d.ts
interface ClientStorageOptions {
daysUntilExpire: number;
daysUntilExpire?: number;
cookieDomain?: string;

@@ -11,3 +11,3 @@ }

save(key: string, value: any, options?: ClientStorageOptions): void;
remove(key: string): void;
remove(key: string, options?: ClientStorageOptions): void;
};

@@ -14,0 +14,0 @@ /**

@@ -1,2 +0,2 @@

declare const _default: "1.22.2";
declare const _default: "1.22.3";
export default _default;

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "1.22.2",
"version": "1.22.3",
"main": "dist/lib/auth0-spa-js.cjs.js",

@@ -56,3 +56,2 @@ "types": "dist/typings/index.d.ts",

"oidc-provider": "^7.10.1",
"pem": "^1.14.4",
"prettier": "^2.4.1",

@@ -85,4 +84,4 @@ "pretty-quick": "^3.1.2",

"browser-tabs-lock": "^1.2.15",
"core-js": "^3.23.2",
"es-cookie": "^1.3.2",
"core-js": "^3.24.0",
"es-cookie": "~1.3.2",
"fast-text-encoding": "^1.0.4",

@@ -89,0 +88,0 @@ "promise-polyfill": "^8.2.3",

@@ -406,3 +406,3 @@ import Lock from 'browser-tabs-lock';

} else {
this.cookieStorage.remove(this.orgHintCookieName);
this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain });
}

@@ -1052,4 +1052,4 @@ }

const postCacheClear = () => {
this.cookieStorage.remove(this.orgHintCookieName);
this.cookieStorage.remove(this.isAuthenticatedCookieName);
this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain });
this.cookieStorage.remove(this.isAuthenticatedCookieName, { cookieDomain: this.options.cookieDomain });

@@ -1056,0 +1056,0 @@ if (localOnly) {

import * as Cookies from 'es-cookie';
interface ClientStorageOptions {
daysUntilExpire: number;
daysUntilExpire?: number;
cookieDomain?: string;

@@ -14,3 +14,3 @@ }

save(key: string, value: any, options?: ClientStorageOptions): void;
remove(key: string): void;
remove(key: string, options?: ClientStorageOptions): void;
};

@@ -53,4 +53,10 @@

remove(key: string) {
Cookies.remove(key);
remove(key: string, options?: ClientStorageOptions) {
let cookieAttributes: Cookies.CookieAttributes = {};
if (options?.cookieDomain) {
cookieAttributes.domain = options.cookieDomain;
}
Cookies.remove(key ,cookieAttributes);
}

@@ -98,5 +104,12 @@ } as ClientStorage;

remove(key: string) {
CookieStorage.remove(key);
CookieStorage.remove(`${LEGACY_PREFIX}${key}`);
remove(key: string, options?: ClientStorageOptions) {
let cookieAttributes: Cookies.CookieAttributes = {};
if (options?.cookieDomain) {
cookieAttributes.domain = options.cookieDomain;
}
Cookies.remove(key ,cookieAttributes);
CookieStorage.remove(key, options);
CookieStorage.remove(`${LEGACY_PREFIX}${key}`, options);
}

@@ -103,0 +116,0 @@ } as ClientStorage;

@@ -1,1 +0,1 @@

export default '1.22.2';
export default '1.22.3';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc