Auth0 400 Bad Request

I have set up openid with auth0 on ShinyProxy.

The cookie received from https://DOMAIN.auth0.com/authorize gets bigger every time I log out.
Leading to:
400 Bad Request
Request Header Or Cookie Too Large
nginx

Similar lines such as:

com.auth0.auth.g6Fo2SBSblBEY3lYOVd4di11X3Fab1RNTGZ1RDRRZDRsUGw0WaN0aWTZMmdhRm8yU0I0ZDA5SmFXVmtiVFEyYURSUVExWkVhbGM0V2tzNU9VeEpOMk5JY0hCV2Rno2NpZNkgY3NBd3pqZEhHY0x2S3Z0bEFzNlB0Mm5NbFJ3dGhSWk8={%22nonce%22:null%2C%22state%22:%22g6Fo2SBSblBEY3lYOVd4di11X3Fab1RNTGZ1RDRRZDRsUGw0WaN0aWTZMmdhRm8yU0I0ZDA5SmFXVmtiVFEyYURSUVExWkVhbGM0V2tzNU9VeEpOMk5JY0hCV2Rno2NpZNkgY3NBd3pqZEhHY0x2S3Z0bEFzNlB0Mm5NbFJ3dGhSWk8%22%2C%22lastUsedConnection%22:%22google-oauth2%22}; auth0=s%3A5m2AVMZplQ63D-j0JtWX68uGBDEX8GEi.Xky2QlsYjIjZ6ZoHZdn971SFNL%2FGLgaP%2Fx28tubz0rY;

are added to the cookie on every log out.

Does anyone have an idea of why this is happening?