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 84c877f commit 2deb560Copy full SHA for 2deb560
packages/core/auth-js/src/GoTrueClient.ts
@@ -1708,6 +1708,10 @@ export default class GoTrueClient {
1708
return await this._getUser()
1709
})
1710
1711
+ if (result.data.user) {
1712
+ this.suppressGetSessionWarning = true
1713
+ }
1714
+
1715
return result
1716
}
1717
@@ -2783,6 +2787,8 @@ export default class GoTrueClient {
2783
2787
private async _removeSession() {
2784
2788
this._debug('#_removeSession()')
2785
2789
2790
+ this.suppressGetSessionWarning = false
2791
2786
2792
await removeItemAsync(this.storage, this.storageKey)
2793
await removeItemAsync(this.storage, this.storageKey + '-code-verifier')
2794
await removeItemAsync(this.storage, this.storageKey + '-user')
0 commit comments