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.
signOut()
method, the user needs to be signed in first.signOut()
uses the global scope, which signs out all other sessions that the user is logged into as well.const \{ error \} = await supabase.auth.signOut()