added mail service
This commit is contained in:
18
app/[locale]/(protected)/cabinet/page.tsx
Normal file
18
app/[locale]/(protected)/cabinet/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { auth, signOut } from '@/config/auth'
|
||||
|
||||
const CabinetPage = async () => {
|
||||
const session = await auth()
|
||||
return (
|
||||
<div>
|
||||
{JSON.stringify(session)}
|
||||
<form action={async () => {
|
||||
'use server'
|
||||
await signOut()
|
||||
}}>
|
||||
<button type="submit">SignOut {session?.user.role}</button>
|
||||
</form>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default CabinetPage
|
||||
Reference in New Issue
Block a user