Next.js Discord

Discord Forum

custom decode function doesn't trigger

Unanswered
Prairie yellowjacket posted this in #help-forum
Open in Discord
Prairie yellowjacketOP
I have a custom JWT encode and decode function because I'm using external backend.

problem is my decode function doesn't even get triggered and I get an error saying JWEInvalid: Invalid Compact JWE

encode function works how it should it returns token and I tested it on jwt.io and I can verify it

I'm using next auth 5 beta.5 and tried it on beta.13

1 Reply

Prairie yellowjacketOP
here is the code I don't have a nitro discord: