Ahnaf
hoffeman
solminded
let jwt = (await SuperTokens.getAccessTokenPayloadSecurely()).jwt
session.getAccessTokenPayload().jwt
Λ C Ξ L X R D
funk101
import React from "react"; import dynamic from "next/dynamic"; import SuperTokensReact from "supertokens-auth-react"; import EmailPassword from "supertokens-auth-react/recipe/emailpassword"; import { frontendConfig } from "../config/frontendConfig"; if (typeof window !== "undefined") { // we only want to call this init function on the frontend, so we check typeof window !== 'undefined' SuperTokensReact.init(frontendConfig()); } const EmailPasswordAuthNoSSR = dynamic( new Promise((res) => res(EmailPassword.EmailPasswordAuth)), { ssr: false } ); function MyApp({ Component, pageProps }) { return ( <EmailPasswordAuthNoSSR> <Component {...pageProps} />; </EmailPasswordAuthNoSSR> ); } export default MyApp;
/api/auth/user/password/reset/token
user
passwordResetURLWithToken
createAndSendCustomEmail
formFields
beemoe5
codingtomato
shubham vora
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).