Kibana: security_authentication cookie too large > 4096

Hi. I’ve been able to setup JWT authentication and can login to elastic and kibana.

However when I move to my production token (4077 bytes long), I get the following errors logged in the browser console.

Set-Cookie header is ignored in response from url  'Cookie length should be less than or equal to 4096'

It looks like kibana is setting the security_authentication cookie

security_authentication= Fe26.2** .... (4325) bytes long