Hey, do you guys have any guide or blog or YouTube...
# support-questions-legacy
a
Hey, do you guys have any guide or blog or YouTube video that I can probably follow to have supertokens implemented in my sveltekit project? Currently I’ve disabled ssr and am initialising my supertokens web sdk in the root +layout.ts file load function and checking for session in each +page.ts file load function and redirecting to login if a session doesn’t exist. First of all, is this a good approach, is there any way to bulk protect a group of routes? I know we can use hooks to do this but wouldn’t that mean I’ll have to move supertokens init function to hooks as well and is it okay if it’s initiated on every page route? I think ssr makes this whole thing super complicated - so any guide that I can use? Since you guys support nextjs with ssr, I believe you might have some best practices to follow while implementing this? Any help is appreciated, thanks. cc: @k5o5
2 Views