Files
yo-next-auth/actions/logout.ts
2024-04-27 00:40:27 +03:00

8 lines
179 B
TypeScript

'use server'
import { signOut } from '@/config/auth'
export const logout = async () => {
// do something separately from js client bundle prior logging out
await signOut()
}