We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dab2fa5 commit 69aca6fCopy full SHA for 69aca6f
packages/core/auth-js/src/GoTrueClient.ts
@@ -2153,9 +2153,9 @@ export default class GoTrueClient {
2153
this._debug(debugName, 'begin')
2154
2155
try {
2156
- const currentSession: Session = (await getItemAsync(this.storage, this.storageKey)) as any
+ const currentSession = (await getItemAsync(this.storage, this.storageKey)) as Session | null
2157
2158
- if (this.userStorage) {
+ if (currentSession && this.userStorage) {
2159
let maybeUser: { user: User | null } | null = (await getItemAsync(
2160
this.userStorage,
2161
this.storageKey + '-user'
0 commit comments