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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...