Javascript Reference v2.0

Launch Week

Supabase Launch Week X Logo
Dec 11-15 / 8am PT

Sign out a user

Inside a browser context, signOut() will remove the logged in user from the browser session and log them out - removing all items from localstorage and then trigger a "SIGNED_OUT" event.

  • In order to use the signOut() method, the user needs to be signed in first.
Parameters
    options
    Optional
    SignOut

const { error } = await supabase.auth.signOut()

We only collect analytics essential to ensuring smooth operation of our services.

Learn more