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

no verifyEmailCode method (am I missing something obvious?) #148

Closed
jawgardner opened this issue Dec 6, 2016 · 5 comments · Fixed by #620
Closed

no verifyEmailCode method (am I missing something obvious?) #148

jawgardner opened this issue Dec 6, 2016 · 5 comments · Fixed by #620

Comments

@jawgardner
Copy link

Hi,

I'm trying to send and validate passwordless credentials in my nodejs server. I can successfully validate a passwordless login with sms. However, while I can send a code via email, I don't see a method that lets me validate the code.

I know i must be missing something obvious.

Can someone offer any advice?

@jawgardner
Copy link
Author

Reviewed the source. There is no way to validate an email code that's passwordless. In fact, in line 82 of passwordlessauthenticator.js, sms is forced to be used, regardless of whether an email address is passed in to signin or not.

Have to admit I'm slightly condused about this. Why provide methods to send out an email code if there is then no way to validate the code once it has been sent?

Workaround: we'll call the auth/ro endpoint directly without using this library, unless anyone has any other ideas?

@akhanukov
Copy link

Hey @jawgardner, I just upgraded to the latest version and have the same issue. When searching for that or the verifyEmailCode method, I found the other repository, https://github.com/auth0/auth0.js, which has them. However, I get a window is not defined error running that one and as one of admins, @cristiandouce says, it wasn't intended to run on Node. So I am trying to figure out how to handle this as well.

@luisrudge
Copy link
Contributor

Hi! I'm sorry about the copy/paste message, but I'm cleaning up some stale/old issues. 🗑
It's been a while since this issue was opened. Are you still having this issue with the latest version? If so, please reopen it with some repro steps so we can help!

@rnwolfe
Copy link

rnwolfe commented Aug 24, 2020

@luisrudge this still seems to be a problem for me in [email protected]. I assume there should be a way to do a verifyEmailCode()?

It's also worth mentioning that there seems to be a verifyEmailCode in the type definitions, but not actually in the code itself.

@tgyamfi
Copy link

tgyamfi commented Sep 12, 2020

@luisrudge this still seems to be a problem for me in [email protected]. I assume there should be a way to do a verifyEmailCode()?

It's also worth mentioning that there seems to be a verifyEmailCode in the type definitions, but not actually in the code itself.

This is def still true :(

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

Successfully merging a pull request may close this issue.

5 participants