Clerk logo

Clerk Docs

Ctrl + K
Go to

Sign out

Learn how to sign-out users


Once you have a signed-in user, you need to give them a way to sign out.

Please note that the sign-out flow only deactivates the current session. Other valid sessions that correspond to the same user (e.g. if the user is signed in on another computer) will continue to work.

You can either sign out users in Clerk via the Clerk Components or build a completely custom flow using ClerkJS or Clerk React.

Before you start

Using Clerk Components

The simplest way to sign out users is via the <UserButton /> component. The user button is a pre-built UI component that gives a signed-in user a way to manage their account. One of the options is a Sign out button.


Note that you don't need to pass any special options to the <UserButton /> component. For more details on the available component options as well as how you can customize them, please visit the UserButton component guide.

Custom sign-out

In case the pre-built user button doesn't cover your needs and you prefer a custom sign-out flow, you can easily make use of our SDKs.


For more information on session management, please check our detailed session management guide.

Was this helpful?

Clerk © 2022