You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1258,13 +1267,14 @@ export default class GoTrueClient {
1258
1267
}
1259
1268
1260
1269
/**
1261
-
* Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session.
1270
+
* Sets the session data from the current session. If the current session is expired,
1271
+
* setSession will take care of refreshing it to obtain a new session when a refresh token is provided and autoRefreshToken is not disabled.
1262
1272
* If the refresh token or access token in the current session is invalid, an error will be thrown.
1263
-
* @param currentSession The current session that minimally contains an access token and refresh token.
1273
+
* @param currentSession The current session that minimally contains an access token.
1264
1274
*/
1265
1275
asyncsetSession(currentSession: {
1266
1276
access_token: string
1267
-
refresh_token: string
1277
+
refresh_token?: string
1268
1278
}): Promise<AuthResponse>{
1269
1279
awaitthis.initializePromise
1270
1280
@@ -1275,10 +1285,10 @@ export default class GoTrueClient {
0 commit comments