mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore: dev -> dev/nextjs * chore: move to /examples * chore: move to playgrounds, add dev/sveltekit * Update sync.yml * chore: dev scripts
8 lines
236 B
JavaScript
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))
|
|
}
|