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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...