![](https://cdn.discordapp.com/embed/avatars/1.png)
Hi all, not a question but just want to share my experience. I followed the SSR OAuth tutorial on here: https://appwrite.io/docs/tutorials/sveltekit-ssr-auth/step-7
However, when setting cookies; I had to use sameSite: "lax"
to make it work upon redirect. Otherwise, if using sameSite: "strict
, when return from Google/Github etc, the hooks.server.js
called with no user
in locals
, but have to manual refresh to make it work to call createSessionClient
.
So if anyone following that tutorial and wondering why on return to /account
, it doesn't show any user details or locals.user
is empty, or return 401
, then change sameSite: "strict"
to sameSite: "lax"
.
At the same time, if I'm doing something wrong here, let me know!
Recommended threads
- How to generate a database-setup script ...
I've written a vue.js webapp with appwrite-cloud-db (including relations) and everything works just perfectly! Now I want to release this webapp as an open sou...
- Server Error - 500 when Loading Messagin...
Hi, I'm self hosting on a VPS my appwrite database and was working towards setting up an SMTP server, when testing I got an error due to some mishaps with the S...
- Invalid token passed in the request by u...
Hi guys, I'm having this issue when passing the parameters userId and secret to **updateVerification**. I checked in Appwrite console and the email was verifie...
![](/images/bgs/pre-footer.png)