Next.js Discord

Discord Forum

NextJS + Next-Auth + Postman

Unanswered
Lancashire Heeler posted this in #help-forum
Open in Discord
Lancashire HeelerOP
How can I access and authenticate API endpoints from postman using Next-Auth, using jwt session strategy.

4 Replies

Lancashire HeelerOP
I've tried to copy paste
same token in browser into postman and no luck.
export async function pOST(request : Nextrequest){

const session = await GetServerSession(authOption);

}
try to response the session but empty