supertokens-website
Advanced tools
Comparing version 10.0.10 to 10.0.11
@@ -9,2 +9,5 @@ # Changelog | ||
## [10.0.11] - 2022-04-28 | ||
- For electron apps, prod build, we now handle `window.location.hostname` being an empty string. | ||
## [10.0.10] - 2022-04-10 | ||
@@ -11,0 +14,0 @@ |
@@ -212,7 +212,8 @@ "use strict"; | ||
} | ||
// for electron apps, the value of of hostname is '' in prod build. Setting it to localhost here results in this value not being used at all which works well. | ||
var defaultSessionScope = | ||
getWindowOrThrow().location.hostname === "" ? "localhost" : getWindowOrThrow().location.hostname; | ||
// See https://github.com/supertokens/supertokens-website/issues/98 | ||
var sessionScope = normaliseSessionScopeOrThrowError( | ||
options !== undefined && options.sessionScope !== undefined | ||
? options.sessionScope | ||
: getWindowOrThrow().location.hostname | ||
options !== undefined && options.sessionScope !== undefined ? options.sessionScope : defaultSessionScope | ||
); | ||
@@ -219,0 +220,0 @@ var sessionExpiredStatusCode = 401; |
@@ -1,2 +0,2 @@ | ||
export declare const package_version = "10.0.10"; | ||
export declare const package_version = "10.0.11"; | ||
export declare const supported_fdi: string[]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
*/ | ||
exports.package_version = "10.0.10"; | ||
exports.package_version = "10.0.11"; | ||
exports.supported_fdi = ["1.8", "1.9", "1.10", "1.11", "1.12", "1.13"]; |
{ | ||
"name": "supertokens-website", | ||
"version": "10.0.10", | ||
"version": "10.0.11", | ||
"description": "frontend sdk for website to be used for auth solution.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
183524
3464