@supabase/gotrue-js
Advanced tools
Comparing version 1.13.1 to 1.13.2
@@ -340,3 +340,3 @@ "use strict"; | ||
const json = helpers_1.isBrowser() && ((_a = this.localStorage) === null || _a === void 0 ? void 0 : _a.getItem(constants_1.STORAGE_KEY)); | ||
if (!json) { | ||
if (!json || typeof json !== 'string') { | ||
return null; | ||
@@ -387,5 +387,6 @@ } | ||
else { | ||
// should be handle on _recoverSession method already | ||
// this._saveSession(currentSession) | ||
// this._notifyAllSubscribers('SIGNED_IN') | ||
// should be handled on _recoverSession method already | ||
// But we still need the code here to accommodate for AsyncStorage e.g. in React native | ||
this._saveSession(currentSession); | ||
this._notifyAllSubscribers('SIGNED_IN'); | ||
} | ||
@@ -392,0 +393,0 @@ } |
@@ -335,3 +335,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const json = isBrowser() && ((_a = this.localStorage) === null || _a === void 0 ? void 0 : _a.getItem(STORAGE_KEY)); | ||
if (!json) { | ||
if (!json || typeof json !== 'string') { | ||
return null; | ||
@@ -382,5 +382,6 @@ } | ||
else { | ||
// should be handle on _recoverSession method already | ||
// this._saveSession(currentSession) | ||
// this._notifyAllSubscribers('SIGNED_IN') | ||
// should be handled on _recoverSession method already | ||
// But we still need the code here to accommodate for AsyncStorage e.g. in React native | ||
this._saveSession(currentSession); | ||
this._notifyAllSubscribers('SIGNED_IN'); | ||
} | ||
@@ -387,0 +388,0 @@ } |
{ | ||
"name": "@supabase/gotrue-js", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"description": "Isomorphic GoTrue client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -405,3 +405,3 @@ import GoTrueApi from './GoTrueApi' | ||
const json = isBrowser() && this.localStorage?.getItem(STORAGE_KEY) | ||
if (!json) { | ||
if (!json || typeof json !== 'string') { | ||
return null | ||
@@ -452,5 +452,6 @@ } | ||
} else { | ||
// should be handle on _recoverSession method already | ||
// this._saveSession(currentSession) | ||
// this._notifyAllSubscribers('SIGNED_IN') | ||
// should be handled on _recoverSession method already | ||
// But we still need the code here to accommodate for AsyncStorage e.g. in React native | ||
this._saveSession(currentSession) | ||
this._notifyAllSubscribers('SIGNED_IN') | ||
} | ||
@@ -457,0 +458,0 @@ } catch (err) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
225491
4042