Hello, is there some sort of hook I can use within react comps to get access to the sessions or rather to validate the AUTH status:
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
);
maybe like a useAuth() similar to Auth0.
r
rp_st
04/06/2024, 4:26 AM
Hey. Yes there is. We have useSessionContext hook
z
zoot7045
04/06/2024, 7:14 PM
Thank you!!! FYI The typings for it don’t clearly reflect the whole class.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).