Hey!
A new version of supertokens-auth-react SDK (v0.24.0) has been released:
- You can wrap your entier app in
<SuperTokensWrapper>
which allows you to access the session context from anywhere component in your app easily.
- The auth wrapper support SSR rendering for NextJS apps, so you don't need to use the
dynamic
HOC anymore.
This is a breaking change since the return type of
useSessionContext()
now has a
loading
state. Please see the changelog for migration steps.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).