expensify.sms is appended to mobile numbers on Expensify.cash sign-in page
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Expected Result:
When users enter a mobile number on the Expensify.cash sign-in page, we do not append @expensify.sms to their mobile number in the link that reads Not [mobile number].
Actual Result:
We currently display the user's mobile number in the format +[country code]mobile [email protected] in this link.
Action Performed:
- Open the Expensify.cash app or head to https://expensify.cash/signin
- Enter a mobile number where it says
Enter your phone or email - On the next screen, observe that the link displays
@expensify.smsafter the mobile number
Workaround:
None.
Platform:
Where is this issue occurring?
- [x] Web
- [x] iOS
- [x] Android
- [x] Desktop App
- [x] Mobile Web
Version Number: 1.0.16.-0 (iOS), 1.0.17-2 (desktop), 1.0.16-4 (Android)
Notes/Photos/Videos:

Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/159831
Solution
Use the method for removing this text in expensify-commone/libs/str to remove.
Triggered auto assignment to @beamanator (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Proposal
we just need to remove the @expensify.sms from credentials.login here
https://github.com/Expensify/Expensify.cash/blob/4d6776c1ecca64a46e9ced27630ea8dd56dfe5d8/src/pages/signin/ChangeExpensifyLoginLink.js#L18-L30
We will use the expensify-common/str.js removeSMSDomain method to remove it.
Questions
- Do I need to remove the
+[country code]part of the number as well?
Proposal Hi We have existing method removeSMSDomain in expensify commons library . I will use this to remove the expensify.sms from credentials.login
it will look like this after changes.

Questions:
In Android issue is reproduced in current live app but its not reproducible in the current branch.
below is the screenshot of current master branch code base.

@parasharrajat Looks great, please submit a PR!
Do I need to remove the
+[country code]part of the number as well?
Please keep the country code, just remove the @expensify.sms part :)
@devrari Just so you know, your proposal looks good too but it's pretty much the exact same as Rajat's, and since he submitted his proposal first, I went with him this time.
Also, when I'm on the master branch, I am able to reproduce the issue on an Android simulator:

Ok. I meant this issue as per the initial issue log is not reproducible Android – different behavior. the link reads Change Expensify login In master branch dBehaviour in android and web is the same, and this one change will fix the issue in both web and android app.
On Sun, Apr 11, 2021 at 2:45 PM Alex Beaman @.***> wrote:
@devrari https://github.com/devrari Just so you know, your proposal looks good too but it's pretty much the exact same as Rajat's, and since he submitted his proposal first, I went with him this time.
Also, when I'm on the master branch, I am able to reproduce the issue on an Android simulator:
[image: Screen Shot 2021-04-11 at 11 13 55 AM] https://user-images.githubusercontent.com/3885503/114298527-1c55a680-9ab7-11eb-92b2-e070aca29f23.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Expensify/Expensify.cash/issues/2323#issuecomment-817275850, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBCCNGRCCQY67ILG2TS3N3TIFSBRANCNFSM42VLVCEQ .
--
Kailash Devrari
@Beamanator This should be closed as well.