Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -39,3 +39,12 @@ export async function signup(formData: FormData) {
|
||||
revalidatePath('/', 'layout')
|
||||
redirect('/')
|
||||
}
|
||||
|
||||
export async function signOut() {
|
||||
const supabase = await createClient()
|
||||
|
||||
await supabase.auth.signOut()
|
||||
|
||||
revalidatePath('/', 'layout')
|
||||
redirect('/login')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user