Files
archived-next-auth/test/docker/app/pages/api/session.js
2020-09-03 23:47:40 +01:00

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))
}