el.xwx.moe/pages/api/v1/getToken.ts
2023-11-02 14:59:31 -04:00

11 lines
418 B
TypeScript

import { NextApiRequest, NextApiResponse } from "next";
import { getToken } from "next-auth/jwt";
export default async (req: NextApiRequest, res: NextApiResponse) => {
// if using `NEXTAUTH_SECRET` env variable, we detect it, and you won't actually need to `secret`
// const token = await getToken({ req })
// const token = await getToken({ req });
// console.log("JSON Web Token", token);
// res.end();
};