how do I omit certain routes from being protected ...
# general
k
how do I omit certain routes from being protected even if they are wrapped under SuperTokensProvider?
r
hey @krymzin0311 SuperTokensWrapper does not protect routes. Only SessionAuth does. So just dont use SessionAuth around those routes for which you don't want a session to always exist
k
Sorry you are right, I meant SessionAuth. So is there no way to set "public routes" as we can in Clerk if the entire application is wrapped under SessionAuth?
r
in that case, you should not wrap your whole application with SessionAuth. Just the routes you want to protect
or, you could make your own Wrapper for SessionAuth which applies SessionAuth to the children component based on a set of routes
k
Alright, thanks for your time