Rank 1: Thread
How I can get all the phoneNumbers of my users using appwrite apple sdk?
Votes
0
Replies
15
Participants
Unknown
Messages
16
Rank 1: Thread
How I can get all the phoneNumbers of my users using appwrite apple sdk?
Admin
You can't because then any user can get other users phone numbers and that is a privacy concern.
Getting users is only available via the users app with an API key
Rank 1: Thread
got it, so how i can check if phone session status is verified ?
Admin
For the current user, call account.get(). The response has a phone verification field
Rank 1: Thread
i got an error :User (role: guests) missing scope (account)
Rank 1: Thread
get() dont need userId?
Rank 1: Thread
UserVerfied run after SendCode to the user phone number
Admin
That error means you're not logged in
Rank 1: Thread
but you can see i created phone Session
Admin
I don't see the sending of the sms code, but I don't see the full code with the confirmation.
Also, it's weird you have the await before the print...will that await the account.get()?
Rank 1: Thread
i changed it to the user login with the sms session -> after the user put the correct code im using the account.get() to check if his name is empty so i know its a new user - > and then open signup details signupView.... - > after the user field all the signup fields i need to update them so i have question if i use preference field inside appwrite auth for coins and i want this field to be secure so no one can change his amount of coins or someone else coins i can achieve that with preference field and use private functions in my code?
Rank 1: Thread
??
Moderator
Instead I recommend having a collection for that.
Meanwhile nobody can change other user coins when using user preferences, the current user can change it's own coins
Moderator
So having a dedicated collection without write and edit permission will help to prevent manipulation (since it will be only possible to modify it with a function)
Rank 1: Thread
ok so i uploaded the project to a git repo and i connect it to appwrite
i tried to figure it out with the documentation but is not understood so i have multiple questions :
i need to make functions directory in my project ?
what it is Entrypoint?
runtime Node.js?
Thank you for the help 🙂
Rank 3: Container
Checkout the official appwrite youtube channel there is a playlist on appwrite functions. Seeing someone do it will help if the documentation is not clear enough for you.