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
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...