[SOLVED] Google oauth succeeds, but fails to retrieve account - 401 response
- 0
- Flutter
- Accounts
The same works fine for both Web and iOS but fails on Android with the following error:
[Error] Method: GET
[Error] URL: /v1/account
[Error] Type: Appwrite\Extend\Exception
[Error] Message: User (role: guests) missing scope (account)
I have configured the callback url in AndroidManifest.xml
. Added a platform for the android.
Looks like the cookies are not being sent. The request object seems to contain all the cookies, but the request
instance in the incoming response object doesn't have them. Am I missing something w.r.t configuration?
How many instances of client do you have in your app?
I realized that this was an issue with wrongly configured scheme http
vs https
for client endpoint.
[SOLVED] Google oauth succeeds, but fails to retrieve account - 401 response
Recommended threads
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...