Created
December 28, 2021 15:18
-
-
Save skolhustick/f40d57ba60f74f5259e52e76f6d75a17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { getSession } from 'next-auth/react' | |
| export default async function handler (req, res) { | |
| const session = await getSession({ req }) | |
| console.log({ session }) | |
| res.status(200).json({ session }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment