Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/auth-js/src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,10 @@ export default class GoTrueClient {
return await this._getUser()
})

if (result.data.user) {
this.suppressGetSessionWarning = true
}

return result
}

Expand Down Expand Up @@ -2783,6 +2787,8 @@ export default class GoTrueClient {
private async _removeSession() {
this._debug('#_removeSession()')

this.suppressGetSessionWarning = false

await removeItemAsync(this.storage, this.storageKey)
await removeItemAsync(this.storage, this.storageKey + '-code-verifier')
await removeItemAsync(this.storage, this.storageKey + '-user')
Expand Down