#Appwrite 1.5.3: Google auth does not create the session.

25 messages · Page 1 of 1 (latest)

prisma tapir
#

Hello, Appwrite is not creating the session after the Google auth but it creates the user in Appwrite auth and the page remains there.

Its throws appwriteexception: user (role: guests) missing… After google login, the page stays at the appwrite page (blank) and does not redirect back to my next.js app and then it throws appwriteexception: user (role: guests) missing… error.

prisma tapir
#

exception trace:

 there is error: AppwriteException: User (role: guests) missing scope (account)
    AppwriteException webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:124
    call webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:448
    fulfilled webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:51
    promise callback*step webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:53
    fulfilled webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:51
    promise callback*step webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:53
    
    getSession webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:1411
    RegisterForm webpack-internal:///./src/components/auth/Register.tsx:52
    React 13
    workLoop webpack-internal:///./node_modules/scheduler/cjs/scheduler.development.js:266
    flushWork webpack-internal:///./node_modules/scheduler/cjs/scheduler.development.js:239
    performWorkUntilDeadline webpack-internal:///./node_modules/scheduler/cjs/scheduler.development.js:533
    EventHandlerNonNull* webpack-internal:///./node_modules/scheduler/cjs/scheduler.development.js:571
    <anonymous> webpack-internal:///./node_modules/scheduler/cjs/scheduler.development.js:633
    js NextJS
Register.tsx:46:20
13:25:52.947 there is error: AppwriteException: User (role: guests) missing scope (account)
   
    

prisma tapir
#

<@&634618551491100692> any suggestions?

rare vessel
rare vessel
#

Do you have set cookies?

prisma tapir
pure pagoda
#

can you show your success page?

prisma tapir
pure pagoda
#

are you using SSR?

prisma tapir
#

no

prisma tapir
#

now, i doubt its may be a 3rd party cookie issues?

pure pagoda
#

It may be, when the success page is called, the cookies are created, do you see any error in the web browser console?

prisma tapir
pure pagoda
#

As I'm reading, brave doesn't allow third party cookies by default

prisma tapir
#

how custom domain works for localhost?

rare vessel
rare vessel
#

Are you sure that you have SSR disabled?

pure pagoda
#

What I can think is, you are using a server component and that is why cookie are not set

#

oh but you said it's working on chrome 🤔

prisma tapir
prisma tapir