This SDK documentation is outdated. Please do not refer to it, and instead visit the User Guides section.

Skip to main content
Version: 0.15.X

signOut()

The signOut method simply revokes the session for the user on the frontend and backend.

import { signOut } from "supertokens-auth-react/recipe/session";

await signOut();
caution

This function does not redirect the user to the login screen. You will need to do that yourself post awaiting it.

Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI