Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Link Authentication #3

Open
Arredatore opened this issue May 29, 2018 · 3 comments
Open

Email Link Authentication #3

Arredatore opened this issue May 29, 2018 · 3 comments

Comments

@Arredatore
Copy link

Arredatore commented May 29, 2018

Hi,

I like your App a good point to start but as a new user to Vue, I'll make an offer to add the Email Link Authentication.

That isn't hard, where to put the callback though?

If in the main.js the guard will not allow access to the /profile so user will be back to the /signin then the answer from Firebase will come and the user will be redirected back to the /profile.

Setting the flag loading: false doesn't work either because the user almost certainly will be back to the new tab by the email link.

This is how it works in my app right now. Doesn't looks right.

As I said I'm new to Vue I'll be glad to see a right way to add this way of Authentication.

@hkd987
Copy link
Contributor

hkd987 commented May 29, 2018

If you are wanting to do email link auth, the simplest way would be when a user creates an account you will redirect them to a page that tells them to check their email.

So instead of directing to /profile you would send the user to /check-email. This way when the user now has the auth link they will taken to profile.

@Arredatore
Copy link
Author

So, yes probably this is the simplest way, have a dedicated page for this case. Thank you.

@lonerockz
Copy link

Firebase supports email verification using their service, you don't have to create it yourself:

https://firebase.googleblog.com/2017/02/email-verification-in-firebase-auth.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants