how do we authorize jwt token if it has 9000 kb length?

78 views Asked by At

We have jwt token which has 9000kb length and this size is more then our server size. so we are unable to authorized it. how can we fix this issue.

We were trying to separate header and claims then authorize them. But could not find any solution.

1

There are 1 answers

3
Ashutosh Patole On

Woah! 9000kb is huuuge!!. The maximum operational limit on most of the webserver is 8k more on this here. Ask yourself:

  1. What information is contained within the JWT token?
  2. Is all the information necessary for authorization and user identification?
  3. Can any of the information be stored elsewhere and referenced within the token?
  4. Are there any redundant or unnecessary data fields that can be removed?

You can split the entire jwt into multiple jwts and verify each of them but it is still not feasible considering you have 9mb of token.