import { Link } from "react-router-dom"; import { useSessionContext } from "supertokens-auth-react/recipe/session"; export default function Home() { const session = useSessionContext(); if (session.loading) { return null; } return ( <>
SuperTokens x React

SuperTokens x React
example project

{session.doesSessionExist ? (

You're signed in already,
check out the Dashboard! 👇

) : (

Sign-in to continue

)}
); }