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
- custom domain on cloudflair was verified...
I've added the credentials as instructed by the appwrite documentation, with cname set to dns only without proxy, and it successfully validated my domain, and w...
- Substring lookup for array elements
Hello, Is substring look up possible for array of strings? ```js Query.contains('product_names', [chair]), ``` this only works if I have the exact item name. `...
- Hey everyone! I'm trying to self-host th...
Hey everyone! I'm trying to self-host the latest Appwrite version (1.8.1) on Coolify. Which docker-compose.yml file should I use from their repo? Can someone he...