JavaScript: Sign out a user (original) (raw)

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.

Parameters

(Required)

Examples

Sign out

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