How can I store country code while logging in with phone. It is a problem because many people may not put the OTP and not login. So what is the best place so that I can store country code and phone as two different fields
I'm sorry, I don't understand well your problem. You want to store country code and phone as two fields, but what do you want to do with the fields?
I want to show country code in my UI so I need to store it but I only get it on login time when the user is not logged in so how can I store it
Oh, you can create a collection with all country code, give permissions to read by all Role.any() or Role.guests() and then call it on login
If they’re not completing signup, why do you need to store their user details? Just put it in the DB when they complete signup
Some more insight into why you need to store the country code would be helpful.
Or can this be closed?
We can close this
[CLOSED] Store country code
Recommended threads
- Framework categorization for Sites
Hello, I want to deploy my web app via Appwrite SItes. My web app is vite+reactjs. In the Appwrite docs, it creates a vite+react app, and chooses React from the...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...