Files
2022-07-17 04:44:11 +02:00

8 lines
236 B
JavaScript

// This is an example of how to read a JSON Web Token from an API route
import { getToken } from "next-auth/jwt"
export default async (req, res) => {
const token = await getToken({ req })
res.send(JSON.stringify(token, null, 2))
}