how do I omit certain routes from being protected even if they are wrapped under SuperTokensProvider?
r
rp_st
03/24/2024, 7:37 AM
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
krymzin0311
03/24/2024, 7:39 AM
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
rp_st
03/24/2024, 7:40 AM
in that case, you should not wrap your whole application with SessionAuth. Just the routes you want to protect
rp_st
03/24/2024, 7:41 AM
or, you could make your own Wrapper for SessionAuth which applies SessionAuth to the children component based on a set of routes
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).