
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
- Dumb question, api key for app? Protect ...
I have my project set up, and I'm developing with Flutter. My app does not require users to log in to retrieve some general project data, but authentication is ...
- Account Deletion is not working
Hey There, i am trying to trigger a function with a swift ui button. The function ist to delete the currently active user with the userID, so that the account i...
- OAuth2 Giving 404
I am trying to implement oauth2 with Google, but it keeps giving this weird 404 error.
