@supabase/gotrue-js
Advanced tools
Comparing version 1.12.6 to 1.13.0
@@ -258,7 +258,9 @@ "use strict"; | ||
signOut() { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const accessToken = (_a = this.currentSession) === null || _a === void 0 ? void 0 : _a.access_token; | ||
this._removeSession(); | ||
this._notifyAllSubscribers('SIGNED_OUT'); | ||
if (this.currentSession) { | ||
const { error } = yield this.api.signOut(this.currentSession.access_token); | ||
if (accessToken) { | ||
const { error } = yield this.api.signOut(accessToken); | ||
if (error) | ||
@@ -265,0 +267,0 @@ return { error }; |
@@ -253,7 +253,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
signOut() { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const accessToken = (_a = this.currentSession) === null || _a === void 0 ? void 0 : _a.access_token; | ||
this._removeSession(); | ||
this._notifyAllSubscribers('SIGNED_OUT'); | ||
if (this.currentSession) { | ||
const { error } = yield this.api.signOut(this.currentSession.access_token); | ||
if (accessToken) { | ||
const { error } = yield this.api.signOut(accessToken); | ||
if (error) | ||
@@ -260,0 +262,0 @@ return { error }; |
{ | ||
"name": "@supabase/gotrue-js", | ||
"version": "1.12.6", | ||
"version": "1.13.0", | ||
"description": "Isomorphic GoTrue client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
189072
2914