You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both useSession and getSession from h3 will set a cookie in any case and it feel strange to have a getter function mutating state.
Is there a way to only get a session if it exists without writing a new cookie? In some countries you cannot use cookie without user consent.
I'm manually removing the cookie by myself after checking the session using clearResponseHeaders(events, 'set-cookie')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
both
useSessionandgetSessionfromh3will set a cookie in any case and it feel strange to have a getter function mutating state.Is there a way to only get a session if it exists without writing a new cookie? In some countries you cannot use cookie without user consent.
I'm manually removing the cookie by myself after checking the session using
clearResponseHeaders(events, 'set-cookie')related: https://github.com/orgs/h3js/discussions/1043
thanks
Beta Was this translation helpful? Give feedback.
All reactions