I'm experiencing an issue with the Session API (/v2/sessions) when trying to login with phone numbers.
Current Setup: Using Zitadel Cloud I have the preferred login name set to email Login with email works correctly via the Session API Phone number is verified for the user The Problem: When I try to use a phone number in the loginName field, I get an error1:
json { "code": 5, "message": "User could not be found (QUERY-Dfbg2)" } What Works:
json { "checks": { "user": { "loginName": "+1234567890" } } } According to the API documentation, the Session API "will not check for emails or phone numbers, even if the corresponding setting is enabled"1. It only accepts the actual username or user_id1.
My Question: Is there a way to enable phone number login directly in the Session API, or do I need to:
Search for the user by phone number using ListUsers API first Extract the preferred login name Then create the session with that login name Has anyone implemented phone number authentication successfully?
Thanks!
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Z
ZITADEL
ZITADEL - Identity infrastructure, simplified for you.