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
I'm trying to protect my routes without sessions because of high security needs. I want to keep my token in memory and send with each request as Bearer token and then check in hooks.server.ts. It was very easy using interceptors in axios. But after 2 days of hard working and searching I couldn't find any way to implement this in sveltekit.
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
-
I'm trying to protect my routes without sessions because of high security needs. I want to keep my token in memory and send with each request as Bearer token and then check in hooks.server.ts. It was very easy using interceptors in axios. But after 2 days of hard working and searching I couldn't find any way to implement this in sveltekit.
Beta Was this translation helpful? Give feedback.
All reactions