Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Conversation

@paul-vd
Copy link

@paul-vd paul-vd commented Feb 10, 2021

The previous if statement resulted in the emailRedirectLogin being called without magic link being defined. eg;

if(magic && router.query.provider) return finishSocialLogin()
else return finishEmailRedirectLogin()

I should instead read:

if(magic){
   if(router.query.provider) return finishSocialLogin()
   else return finishEmailRedirectLogin()
}

The previous if statement resulted in the emailRedirectLogin being called without magic link being defined. eg;

```js
if(magic && router.query.provider) return finishSocialLogin()
else return finishEmailRedirectLogin()
```

I should instead read:
```js
if(magic){
   if(router.query.provider) return finishSocialLogin()
   else return finishEmailRedirectLogin()
}
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant