Web Developer
Hi all, I'm following the repo https://github.com/adrianhajdin/aora to make the app work in browser with react-native-web. The sign-in feature works well on mobile devices, but not in web browsers.
In https://github.com/adrianhajdin/aora/blob/main/app/(auth)/sign-in.jsx, after clinking Sign In button with correct credentials, I got an error ```GET https://cloud.appwrite.io/v1/account 401 (Unauthorized)
AppwriteException: User (role: guests) missing scope (account)
at Client. (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:93245:19)
at Generator.next ()
at fulfilled (http://localhost:8081/node_modules/expo-router/entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:92875:26)```
I've tried to add some debug code around the signIn call in sign-in.jsx:
const session = await signIn(form.email, form.password); console.log(`User signed in: ${form.email}`); console.log(`Session: ${JSON.stringify(session)}`); const result = await getCurrentUser();```and also in the `getAccount` method in https://github.com/adrianhajdin/aora/blob/main/lib/appwrite.js :``` console.log("Getting current account"); const currentAccount = await account.get(); console.log(`Current account: ${JSON.stringify(currentAccount)}`);```I'll paste the whole console output I got from the browser below, since Discord says "Message is too long".
Any help/advice would be greatly appreciated.