Quantcast
Channel: JWT.io - Auth0 Community
Viewing all articles
Browse latest Browse all 148

Receiving JWE token instead of JWT in Next.js app session

$
0
0

Hi,

We are expecting, a JWT token. We can’t figure out why we are getting a JWE token instead. The only option I can find that would cause this is a plugin that is off. My understanding is JWT should be the default. I am hoping someone could offer some ideas I can look in to.

I am fairly new to this so please let me know if there is any specific information I can share.

  • Using getSession from @auth0/nextjs-auth0.
  • The token has 5 “.”-separated parts, which is why I assume this is a JWE token. Details:
    Decoded Header (part 1):
    {
      "alg": "dir",
      "enc": "A256GCM",
      "iss": "https://########.##.auth0.com/"
    }
    Part 2 length: 0 chars
    Part 3 length: 16 chars
    Part 4 length: 319 chars
    Part 5 length: 22 chars
    

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 148

Trending Articles