rp_st
07/12/2021, 3:01 PMemailVerificationAuth, queries is email verified only if session exists
- redirectTo query param will be respected when visiting auth page, if session exists
- Remove UI rendering lag when using auth recipe components (EmailPasswordAuth, ThirdPartyAuth, ThirdPartyEmailPasswordAuth)
- Fix component overrides rerendering
Features:
- SessionAuth can be nested inside another SessionAuth
- SessionAuth will automatically update context with new data when session changes
- onSessionExpired prop on SessionAuth, EmailPasswordAuth, ThirdPartyAuth and ThirdPartyEmailPasswordAuth
- SESSION_CREATED event can be listened to in onHandleEvent hook.
Breaking changes:
- The components override API has changed from (DefaultComponent) => (props) => React.Element to ({ DefaultComponent, …props }) => React.Element.
- If a component is wrapped in an auth wrapper with requireAuth={true}, and onSessionExpired prop is not provided, then the user will be automatically redirected to the login screen when session expires.
supertokens-website@8.1.0
Features:
- SESSION_CREATED event is fired whenever new session is established (going from state with no session to state with session)