How I can get all the phoneNumbers of my users using appwrite apple sdk?
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
got it, so how i can check if phone session status is verified ?
For the current user, call account.get(). The response has a phone verification field
i got an error :User (role: guests) missing scope (account)
get() dont need userId?
UserVerfied run after SendCode to the user phone number
That error means you're not logged in
but you can see i created phone Session
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()?
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?
??
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
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)
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 🙂
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.
Recommended threads
- I am currently seeking opportunities as ...
Hey! 👋 I'm a Shopify guy. Been building stores for 8+ years. Still haven't lost my mind. Barely. I make stores that don't suck fast, smooth, and actually built...
- Apple OAuth2 "Registration Not Complete"...
I'm getting a "Registration Not Complete" error when implementing Apple Sign In OAuth2 on self-hosted Appwrite. Environment: Self-hosted Appwrite (latest), iOS...
- Cannot use Apple Oauth2 in React Native/...
Hi! I've trying to add the Apple sign in feature into my Expo App. I followed the docs, but I still receiving the error "Cannot set 'location.href'". Can someon...