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
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast