first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { supabase } from '@/lib/supabase/client'
|
||||
|
||||
export const signIn = async (email, password) => {
|
||||
return await supabase.auth.signInWithPassword({ email, password })
|
||||
}
|
||||
|
||||
export const signUp = async (email, password) => {
|
||||
return await supabase.auth.signUp({ email, password })
|
||||
}
|
||||
|
||||
export const signOut = async () => {
|
||||
return await supabase.auth.signOut()
|
||||
}
|
||||
|
||||
export const getUser = async () => {
|
||||
const { data } = await supabase.auth.getUser()
|
||||
return data.user
|
||||
}
|
||||
Reference in New Issue
Block a user