supabase
supabase copied to clipboard
How do I sign out completely?
Version
@nuxtjs/supabase: "^0.1.27" nuxt: "^3.0.0-rc.11"
Question
The first time you used your Twitter provider for sign-in, you selected your account.
Thereafter, when signing in after signing out, the account selection screen is skipped and the user is automatically logged in.
Is it possible to sign out completely? In the AuthModule, logout({returnTo: '/url' })
Please tell me, thank you.
signin
const onSignIn = async (provider) => {
const { error } = await $nuxtApp.$supabase.auth.signIn(
{ provider },
{ redirectTo: "http://localhost:3000/test") }
);
}
signout
const onSignOut = async () => {
const { error } = await $nuxtApp.$supabase.auth.signOut();
navigateTo("/");
};