@supabase/gotrue-js
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -265,2 +265,3 @@ "use strict"; | ||
this.currentSession = session; | ||
this.currentUser = session.user; | ||
let tokenExpirySeconds = session['expires_in']; | ||
@@ -298,3 +299,3 @@ if (this.autoRefreshToken && tokenExpirySeconds) { | ||
this.currentSession = currentSession; | ||
this.currentUser = currentSession.user; | ||
this.currentUser = currentUser; | ||
// schedule a refresh 60 seconds before token due to expire | ||
@@ -301,0 +302,0 @@ setTimeout(this._callRefreshToken, (expiresAt - timeNow - 60) * 1000); |
@@ -260,2 +260,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.currentSession = session; | ||
this.currentUser = session.user; | ||
let tokenExpirySeconds = session['expires_in']; | ||
@@ -293,3 +294,3 @@ if (this.autoRefreshToken && tokenExpirySeconds) { | ||
this.currentSession = currentSession; | ||
this.currentUser = currentSession.user; | ||
this.currentUser = currentUser; | ||
// schedule a refresh 60 seconds before token due to expire | ||
@@ -296,0 +297,0 @@ setTimeout(this._callRefreshToken, (expiresAt - timeNow - 60) * 1000); |
{ | ||
"name": "@supabase/gotrue-js", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"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
112409
1814