# Login with phone number?

**URL:** <https://forums.rocket.chat/t/login-with-phone-number/15481>\
**Category:** Development\
**Created:** [December 2, 2022, 1:15pm UTC](https://forums.rocket.chat/t/login-with-phone-number/15481 "2022-12-02T13:15:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NatuMyers](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@NatuMyers](https://forums.rocket.chat/u/NatuMyers)\
**Post date:** [December 2, 2022, 1:15pm UTC](https://forums.rocket.chat/t/login-with-phone-number/15481/1 "2022-12-02T13:15:17Z")

</div>

I have a Rocket chat custom (reskinned) web, iOS and android app.

I have done search can couldn’t find the answer

But I need to have it so that people MUST login to my app using their phone number and they MUST register using a phone number (email and password shouldn’t be enough). Custom fields aren’t that good for phone number. Can someone tell me what to do (or tell me what to tell a developer to do?

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [December 22, 2022, 4:02pm UTC](https://forums.rocket.chat/t/login-with-phone-number/15481/2 "2022-12-22T16:02:07Z")

</div>

Hi!

You can try doing that by leveraging the [CREATE TOKENS API](https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/users-endpoints/create-users-token)

Basically, you will handle auth your way, and once you get assert it can be authed, you will generate a token and redirect user to [http://chat.company.com/?resumeToken=received\_token](http://chat.company.com/?resumeToken=received_token)

let me know if this helps 🙂
