15 lines
214 B
TypeScript
15 lines
214 B
TypeScript
import {signOut} from '@/auth'
|
|
|
|
export function SignOutButton() {
|
|
return (
|
|
<form
|
|
action={async () => {
|
|
'use server'
|
|
await signOut()
|
|
}}
|
|
>
|
|
<button type='submit'>Sign Out</button>
|
|
</form>
|
|
)
|
|
}
|