Hi! Im attempting to get the users session using serversideprops to speed up the page load, how do i get the session using the req and res/serversideprops in Next.js?
You can see a good example of Appwrite auth with nextjs in Meldiron project Almost SSR https://next-js.ssr.almostapps.eu/ https://github.com/Meldiron/appwrite-ssr-next-js
I've looked at this code but it seems to be for anonymous login only, as the anonymous session is created server-side. How can i do this for oauth?
Yes in this type of login it can be a bit tricky, check Meldiron advice here. https://discord.com/channels/564160730845151244/564160731327758347/1110645396620988436
and are there any plans to make this process easier in the near future?
I think. but not in the very near future. You can see this feature request is related to the core logic of the issue, you can upvote this. https://github.com/appwrite/appwrite/issues/3891
Because as of now there is no way to execute Client SDK actions with a Server side SDK.
Recommended threads
- [SDK] [Postman] Can't post to Users usin...
when trying to post to users I'm getting missing scopes and at the same time I'm getting an authorised scope How do I generate an API and get around this issue
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...