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

feat(auth): support passwordless login (email link) #857

Closed
wissile opened this issue Feb 4, 2020 · 4 comments · Fixed by #1149
Closed

feat(auth): support passwordless login (email link) #857

wissile opened this issue Feb 4, 2020 · 4 comments · Fixed by #1149

Comments

@wissile
Copy link

wissile commented Feb 4, 2020

@prescottprue Thank you for taking the time to answer my question.
I have already configured the rrfConfig as you mentioned above and everything else according to your documentation. Perharps, I haven't formulated my question clearly:

  1. How to log in users with firebase.login({params}) that are signed up with email link (passwordless) using the methods you have outlined in the auth section?

This one of your example:

firebase.login({
  email: '[email protected]',
  password: 'testest1'
})

Using your example, the user does not have a password, or credential or accessToken since he signed up using email link firebase.auth().signInWithEmailLink(email, window.location.href) but this wouldn't work:

firebase.login({
  email: '[email protected]',
  url: 'http://someurl.com' // should I add the auth url provided by firebase here?
})
  1. Similarly, how to create users with createUser(credentials, profile) using email link (passwordless) auth?
const createNewUser = ({ email, password, username }) => {
  firebase.createUser( // should password be replaced by url?
    { email, password },
    { username, email }
  )
}

Sorry I'm coming back with this question but it is very critical for me to understand the best implementation with your package module as this is a huge help with the project I'm trying to build.
Thank you in advance for helping out :)

Originally posted by @wissile in #849 (comment)

@dnewball
Copy link

dnewball commented Feb 7, 2020

+1 I’m also blocked with the same issue, I’m getting started with react native and Firebase auth and was planning to use email link auth but it is hardly documented anywhere it would be great together some advice on this

@cyonder
Copy link

cyonder commented Jul 21, 2020

+1 I can't find a proper documentation either. I would appreciate any help with this. At this moment I am not even sure if it is possible to implement passwordless authentication with this package. @prescottprue

@prescottprue
Copy link
Owner

Hey folks, thanks for all of the input. Yeah not sure we ever added the support in for passwordless. Open to PRs if anyone gets a chance, otherwise, I will try to get to it soon

@prescottprue prescottprue changed the title @prescottprue firebase.login({params}) / firebase.createUser() with Firebase Email Link auth feat(auth): support passwordless login (email link) Jul 22, 2020
@elron
Copy link

elron commented Nov 3, 2020

Any news on this?

@prescottprue prescottprue mentioned this issue Nov 23, 2021
3 tasks
prescottprue added a commit that referenced this issue Nov 23, 2021
* feat(auth): support passwordless sign-in (#857, #1064) - @komachi
* fix(populate): take child param into account when populating (#1083, #1085) - @danielo515
* fix(docs): correctly redirect when auth does not exist in the routing example doc - @JonathanPorta
* chore(deps): bump ws in /examples/complete/typescript (#1148)
* chore(deps): bump color-string in /examples/complete/typescript (#1147)
* chore(deps): bump dns-packet in /examples/complete/typescript (#1110)
* chore(deps): bump dns-packet in /examples/complete/firestore (#1109)
* chore(deps): bump dns-packet in /examples/complete/simple (#1108) 

Co-authored-by: Anton Nesterov <[email protected]>
Co-authored-by: Daniel Rodríguez Rivero <[email protected]>
Co-authored-by: Jonathan Porta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants