Rank 2: Process
trying to use user preferences
AppwriteException: User (role: guests) missing scope (account) at Client.eval (webpack-internal:///(rsc)/./node_modules/appwrite/dist/esm/sdk.js:455:27) at Generator.next (<anonymous>) at fulfilled (webpack-internal:///(rsc)/./node_modules/appwrite/dist/esm/sdk.js:46:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 401, type: 'general_unauthorized_scope', response: { message: 'User (role: guests) missing scope (account)', code: 401, type: 'general_unauthorized_scope', version: '1.5.10' }}```
```tsasync function GetCurrentChat() { try { const res = await AppwriteUser.getPrefs(); return res?.['x0-chatID']; } catch (error: any) { console.log(error); return false; }}```