
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
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
- Attributes Problem - Cloud
I am not able to see the attribute columns and their context on cloud. Can you help?
