@obelisk/auth
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -59,2 +59,3 @@ import { AuthEvent, ObeliskAuth } from './auth'; | ||
private parseJwtString; | ||
private setStorage; | ||
} |
@@ -403,2 +403,6 @@ var AuthEventType; | ||
}); | ||
if ('remember_me' in query_1) { | ||
// Set correct storage! | ||
this.setStorage(query_1.remeber_me); | ||
} | ||
if ('code' in query_1) { | ||
@@ -495,2 +499,5 @@ query_1.client_id = this.config.clientId; | ||
}; | ||
ObeliskAuthClient.prototype.setStorage = function (rememberMe) { | ||
this.storage = rememberMe ? localStorage : sessionStorage; | ||
}; | ||
return ObeliskAuthClient; | ||
@@ -497,0 +504,0 @@ }()); |
@@ -406,2 +406,6 @@ 'use strict'; | ||
}); | ||
if ('remember_me' in query_1) { | ||
// Set correct storage! | ||
this.setStorage(query_1.remeber_me); | ||
} | ||
if ('code' in query_1) { | ||
@@ -498,2 +502,5 @@ query_1.client_id = this.config.clientId; | ||
}; | ||
ObeliskAuthClient.prototype.setStorage = function (rememberMe) { | ||
this.storage = rememberMe ? localStorage : sessionStorage; | ||
}; | ||
return ObeliskAuthClient; | ||
@@ -500,0 +507,0 @@ }()); |
{ | ||
"name": "@obelisk/auth", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144182
1100