gitcommitshow
onHandleEvent
supertokens-website
await supertokens.signOut();
supertokens.init({ apiDomain: "...", onHandleEvent: (context) => { if (context.action === "UNAUTHORISED") { alert("You are not logged in"); if (context.sessionExpiredOrRevoked) { console.log("Session expired or revoked") } } } })
rp_st
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).