Skip to content

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

Closed
@wissile

Description

@wissile

@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: 'test@test.com',
  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: 'test@test.com',
  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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions