B2B-88: add starter kit structure and elements
This commit is contained in:
13
packages/supabase/src/hooks/use-sign-out.ts
Normal file
13
packages/supabase/src/hooks/use-sign-out.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useMutation } from '@tanstack/react-query';
|
||||
|
||||
import { useSupabase } from './use-supabase';
|
||||
|
||||
export function useSignOut() {
|
||||
const client = useSupabase();
|
||||
|
||||
return useMutation({
|
||||
mutationFn: () => {
|
||||
return client.auth.signOut();
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user