diff --git a/src/GoTrueClient.ts b/src/GoTrueClient.ts index 3c590072..20767532 100644 --- a/src/GoTrueClient.ts +++ b/src/GoTrueClient.ts @@ -314,7 +314,7 @@ export default class GoTrueClient { this._debug('#_initialize()', 'error detecting session from URL', error) if ( - error?.code === identity_already_exists + error?.code === 'identity_already_exists' ) { return { error } }