I'm unable to fetch the user list. Currently I'm developing an Android app using Java and trying to implement the Phone Authentication using AppWrite. For the verification, I need to get the userID and so I was trying to use the User API but the io.appwrite.services.Users
library isn't working. Also,
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key```
the ```.setkey()``` function is not getting called. Is there any updation in the function?
Can anyone assist me on how can I fetch the userID of an unverified phone number for phone verification?
Unable to fetch the UseID
Unable to fetch the UserID
The Users service is not available in a client SDK. See the note about users API vs account API: https://appwrite.io/docs/server/users
Why do you need to fetch the user id for phone verification?
To authenticate the number using the the secret code sent to number and the userID
Here you can see that the number is unverified
I need to pass the userID and the secret code. I'm able to pass the secret code but idk how to get the userId
Oh interesting...
After you log in, you can call account.get() to get the user details including the user id
Also, the API call before this one that creates the phone verification returns a token object which has user id
so for login I need to use the "Create Phone Session" API right?
Which API are you talking about sir?
Okay! Got it
Thank you so much!
[SOLVED] Unable to fetch the UserID
TWILO
Recommended threads
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this