Auth0 Home Blog Docs

I get the error "The generated token is too large. Try with more specific scopes"

jwt
id_token

#1

Question: I keep getting the error “The generated token is too large. Try with more specific scopes” when working with JWTs. What do I need to do?

Answer

The cause is usually due to a NON-OIDC comformant application requesting profile scope causing size of the ID Token to be bigger than allowed. This is because Non-OIDC clients return full user profile when scope profile is requested.

The maximum allowed size for an ID Token is around 3.5kb.

There are a few things you can do to fix:


#2