added tons of features
This commit is contained in:
14
components/auth/forms/sign-out-button.tsx
Normal file
14
components/auth/forms/sign-out-button.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import {signOut} from '@/auth'
|
||||
|
||||
export function SignOutButton() {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
'use server'
|
||||
await signOut()
|
||||
}}
|
||||
>
|
||||
<button type='submit'>Sign Out</button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user