
Or just not use SSR if it's not needed

i have no problem with using CSR. but as i mentioned above, it's throwing the same error even on CSR

You mean missing scope...

yes. the exact same error, but in the browser console

But is this after login in? Everything is being triggered client side?

the login was triggered on the server side with magic url. and i'm trying to get the login session in the client side

Did you complete the magic URL server side or client side?

The magic URL was completed on the server side. and after some digging, I kinda get that a server-side login session won't work on the client-side cause Appwrite is storing the server-side session as Node Fetch and a client-side session will be stored based on the browser. but what I'm mostly confused about is, why it's not working when both the magic URL and account.get()
is on the server-side

The Appwrite client sdks work using cookies and local storage. Those are not available server side so the session isn't persisted and used in future requests

okay, sounds logical. but what should be the workaround for this if I don't wanna make my email confirmation endpoint client-side? cause magic URL surely not available on the server sdk

Manually finish the magic URL flow and do the same as manually creating an email session

how can i finish the magic URL flow manually?

didn't get what you mean

Make the API call manually

on the client-side?

No you said you wanted to handle it server side

okay, do you mean to literally hit the PUT endpoint to update the magic url session instead of using the updateMagicURLSession
function?

I'm not sure what difference it'll make. it would be great if u can help me understand that

The point is to manually extract the session cookie like the repo does


[CLOSED] User (role: guests) missing scope (account)

[SOLVED] User (role: guests) missing scope (account)

Hello. Please help. I cant use magic url for flutter. I get link on mail, but when i hit it i get your Magic url login flow is missing a propper riderect URL. Please check the Magic URL docs and send request for new session with a valid redirect URl.

i use cloud

please create a new <#1072905050399191082> post instead of posting in an old thread
Recommended threads
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
- Looking for FullStack Developer
I'm looking for FullStack Developer who is passionated about both Frontend and Backend. If you are interested, please DM me. Thanks.
