mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
7 lines
175 B
JavaScript
7 lines
175 B
JavaScript
import { getSession } from 'next-auth/client'
|
|
|
|
export default async (req, res) => {
|
|
const session = await getSession({ req })
|
|
res.send(JSON.stringify(session, null, 2))
|
|
}
|