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
- i need help!
I was working on my project and I just can't stop receiving this message. Is something wrong?
- Confused about the pricing. Can I get so...
I 'm really confused about the pricing here. I've got the pro plan and i have 4 projects open. As you can see, I'm nowhere near my usage limits with these proje...
- Request for JWKS Endpoint and OIDC Disco...
Hey Appwrite Team, Do you have plans to support JWKS and a well-known OIDC discovery endpoint? This would let us verify Appwrite JWTs in other services using st...