Replies: 1 comment
-
|
ok i think i just had a hard time with docs. the answer is middleware - using web() instead of sveltekit this is actually super awesome |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
right now i create a session when the user signs in with google:
when i check the browser's Application tab, i find the
auth_sessionkey with a corresponding id. which is awesome.but it seems that it is
httpOnly- so am not able to access via js on the client side where the user gets redirected to after sign in. which i understand is for security pruposes.but then what is the best way to validate the session? i have cloudflare wranglers running the backend. so i would need to send them the session id somehow. when i try to do a fetch - i see that nothing gets passed to the endpoint.
my goal is to validate the session - as well as return a user name and email so i can display it...
Beta Was this translation helpful? Give feedback.
All reactions