Skip to content

Login with Code sent to Phone Number/Email #5034

@promisenxu

Description

@promisenxu

Is your feature request related to a problem? Please describe.
In our app, we allow users to sign up with their phone number. As of now, to login with phone number, one needs to provide their password. We want to allow users to login with a verification code sent to their phone.

Describe the solution you'd like
It seems to me the best approach is to implement an auth provider that handles the verification process. We would also need to update the authData field for all existing users with a phone number so that they can login.

Describe alternatives you've considered
Is there a way to implement this feature without any new code/auth provider? I read through the documentation for Session and User and it doesn't seem possible to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions