``` import { signOut } from "supertokens-auth-reac...
# support-questions-legacy
g
Copy code
import { signOut } from "supertokens-auth-react/recipe/thirdpartyemailpassword"

<button
  onClick={async () => {
    await signOut()
    mutate() //SWR stuff for
    toggle() //closes the menu
    router.push("/") //redirects
  }}
>Logout</button>