
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
- appwrite 1.7.0 Failed to fetch
We recently upgraded our Appwrite installation from version 1.6.2 to 1.7.0, and since the upgrade, we are unable to log in to the Appwrite console. The login at...
- Issue with github oauth in firefox brows...
Hello Guys i have setup appwrite auth (Email Password, Google and Github). All auth methods works fine on the chrome based browsers but it has a strange issue w...
- Attribute already exists in schema
I created an attribute, deleted it and now I can't create it again. It says "Failed" and "Attribute already exists in schema". ```json { "27": { "ke...
