Skip to content

Support user login with non-email fields #2068

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

Open
2 tasks done
kevcube opened this issue Mar 2, 2025 · 1 comment
Open
2 tasks done

Support user login with non-email fields #2068

kevcube opened this issue Mar 2, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@kevcube
Copy link

kevcube commented Mar 2, 2025

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Description

I could only find that hanko supports registering users with email as their identifier. We are using phone numbers in our app and registering a passkey once OTP verified. We want to use Hanko but cannot.

Describe your ideal solution

Ability to use phone number or generic field (username) instead of email for sign-in. I am not sure whether the deficiency is in hanko-elements or hanko.

Workarounds or alternatives

We could use passkey-server and a custom auth solution but we would like an all-in-one product like Hanko backend.

Hanko Version

latest

Additional Context

No response

@kevcube kevcube added the enhancement New feature or request label Mar 2, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in Hanko Mar 2, 2025
@FlxMgdnz
Copy link
Member

FlxMgdnz commented Mar 3, 2025

Hanko supports usernames, but not yet phone numbers. You can theoretically use a phone number as a username, but we do not yet have the logic to send SMS or connect an SMS provider for the OTP.

We have plans to add sms providers at some point, but it's not on the immediate roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants