What is the maximum size of JWT token?

前端 未结 3 1352
梦毁少年i
梦毁少年i 2020-12-02 17:52

I need to know the maximum length of

JSON Web Token (JWT)

In specs there are no information about it. Could be that, there are

3条回答
  •  星月不相逢
    2020-12-02 18:31

    When using heroku the header will be limited at 8k. Depending of how much data are you using on jwt2 it will be reach. The request, when oversize, will not touch your node instance, heroku router will drop it before your API layer..

    When processing an incoming request, a router sets up an 8KB receive buffer and begins reading the HTTP request line and request headers. Each of these can be at most 8KB in length, but together can be more than 8KB in total. Requests containing a request line or header line longer than 8KB will be dropped by the router without being dispatched.

    See: Heroku Limits

提交回复
热议问题