
Hello everyone, I work with nuxt and I have the following issue:
Error checking user status: User (role: guests) missing scope (account)
at Client.<anonymous> (node_modules\.pnpm\appwrite@16.0.2\node_modules\appwrite\src\client.ts:695:19)
at Generator.next (<anonymous>)
at fulfilled (node_modules\.pnpm\appwrite@16.0.2\node_modules\appwrite\node_modules\tslib\tslib.es6.js:73:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Here is the code that generate this error:
const checkUser = async () => {
try {
user.value = await account.get()
} catch (error) {
console.log('Error checking user status:', error)
}
}
I have checked my active session in the cookies and I see:
a_session_<userId>: <auth_token>

how are you authenticating?

With:
account.createEmailPasswordSession(email, password)

Are you using SSR?

Yes

You probably need a session created on the server and client depending on how you are fetching data

How can I do that ?

I don't know much about Nuxt, but maybe this Next tutorial is applicable in some way?


Ok thank you, I'll try to see that
Recommended threads
- line 1: 107 Killed npm run build
When trying to deploy my Nuxt app for testing, it goes through rendering chunks successfully and once it gets to Initializing the pre-renderer it throws this er...
- Vercel Deployment issue
I am trying to deploy my web project using vercel, but in the deployed link, it is fetching some of the attributes and for the rest it is giving "not found" err...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
