@supabase/gotrue-js
Advanced tools
Comparing version 1.5.8 to 1.5.9
@@ -70,3 +70,3 @@ "use strict"; | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
if ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.confirmed_at) { | ||
@@ -118,3 +118,3 @@ this._saveSession(data); | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
this.currentUser = data; | ||
@@ -139,3 +139,3 @@ return { data: this.currentUser, error: null }; | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
this.currentUser = data; | ||
@@ -176,3 +176,3 @@ this._notifyAllSubscribers(types_1.AuthChangeEvent.USER_UPDATED); | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
const session = { | ||
@@ -179,0 +179,0 @@ access_token, |
@@ -65,3 +65,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
if ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.confirmed_at) { | ||
@@ -113,3 +113,3 @@ this._saveSession(data); | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
this.currentUser = data; | ||
@@ -134,3 +134,3 @@ return { data: this.currentUser, error: null }; | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
this.currentUser = data; | ||
@@ -171,3 +171,3 @@ this._notifyAllSubscribers(AuthChangeEvent.USER_UPDATED); | ||
if (error) | ||
throw new Error(error); | ||
throw error; | ||
const session = { | ||
@@ -174,0 +174,0 @@ access_token, |
{ | ||
"name": "@supabase/gotrue-js", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"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
117705