mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore: convert to monorepo * Remove eslint, typescript, semantic-release * Add yarn.lock * Add turbo * Run test command * Move to src * Add a seperate tsconfig file * Update .gitignore * Update commands to yarn * Replace semantic-release with changesets * Update changesets usage * Fix commands: dev, setup, clean * Add back changes from main * Fixed HMR * Update .gitignore
8 lines
264 B
JavaScript
8 lines
264 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, secret: process.env.SECRET })
|
|
res.send(JSON.stringify(token, null, 2))
|
|
}
|