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