Back

[SOLVED] nuxt-appwrite with OAuth2 provider

  • 1
  • Self Hosted
  • Accounts
  • Web
Stormbringer
6 Apr, 2023, 17:34

This is working on the client side but the server keeps throwing and error both on local dev (which is kind of expected) and on my digital ocean hosted nuxt 3 app I have tried serval times to make sure domains a set appropriately and have created custom domains which all seem to work but this server error keeps happing and I don't know how to fix? Has anone used nuxt-appwrite ?

fetchUser ERROR AppwriteException: User (role: guests) missing scope (account) at Client.<anonymous> (.../appwrite:387:27) at Generator.next (<anonymous>) at fulfilled (..../appwrite:24: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.2.0' } }

TL;DR
The user is experiencing an error with nuxt-appwrite and an OAuth2 provider. The suggested solution is to create a JWT token from the client side and pass it to the Nuxt backend. However, the server continues to throw an error related to a missing scope. The user is unsure how to fix this and is asking for help. No solution is provided in the thread.
Drake
6 Apr, 2023, 18:56

I think your only option for this is to create a JWT token from the client side and pass it to your nuxt back end

Tessa
7 Apr, 2023, 21:06

@Stormbringer shall I close this? everything good ?

Tessa
8 Apr, 2023, 14:07

[SOLVED] nuxt-appwrite with OAuth2 provider

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more