issue authenticating new user : [AppwriteException: User (role: guests) missing scope (account)]
- 0
- React Native
i am currently facing an issue that didn't appear except few days back now, and so far i've tried and can't fix it
i created a platform integration using my applicationId from android/app/build.gradle
after doing a prebuild as i've changed the package name few commits back in the project.
doing few logs to check where the issue is coming from
async function login(email: string, password: string): Promise<void> {
try {
console.log("logging");
const result = await account.createEmailPasswordSession(email, password);
console.log(result);
await new Promise((resolve) => setTimeout(resolve, 500));
console.log("getting user details");
const userDetails = await account.get(); //stops here and throws the error
console.log("user details acquired");
initializeUserId(userDetails.$id);
setUser(userDetails as User);
console.log(user);
ToastGlue("Welcome back. You are logged in");
} catch (error) {
//console.error("Login error:", error);
ToastGlue("Login failed. Please check your credentials.");
throw error;
}
}
the console logs
(NOBRIDGE) LOG logging
(NOBRIDGE) LOG {"$createdAt": "2025-04-21T15:01:39.803+00:00", "$id": "redacted", "$updatedAt": "2025-04-21T15:01:39.803+00:00", "clientCode": "", "clientEngine": "", "clientEngineVersion": "", "clientName": "OkHttp", "clientType": "library", "clientVersion": "4.12", "countryCode": "xx", "countryName": "redacted", "current": true, "deviceBrand": "", "deviceModel": "", "deviceName": "", "expire": "2026-04-21T15:01:39.758+00:00", "factors": ["password"], "ip": "redacted", "mfaUpdatedAt": "", "osCode": "AND", "osName": "Android", "osVersion": "", "provider": "email", "providerAccessToken": "", "providerAccessTokenExpiry": "", "providerRefreshToken": "", "providerUid": "xxxxxx@gmail.com", "secret": "", "userId": "redacted"}
(NOBRIDGE) LOG getting user details
(NOBRIDGE) ERROR Login error: [AppwriteException: User (role: guests) missing scope (account)]
the image i incorporated, i just wanted to clear that the session gets created, i've made sure the clear all sessions before the point for test, just to clearly show that there's a new session in progress. i'll continue testing, with tools like burpsuite, to catch the request that's being sent.
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...
- React Native/iOS platform integrations h...
Anyone else have this issue where platform identifiers have been lost/wiped and no option/field available to update them in the console?
- Issue with Appwrite Read Request Limit b...
Hi Team, My coding terminal connected to the Appwrite CLI blew through my Projects Read request limit with in a day! and thats a large limit! I'm not sure how...