Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

enc_auth_token Cooke issue #9081


User avatar
0
velu created

Hi,

We are using .netcore 2.2

we found that enc auth token cookies value is always null, [ws://localhost:22742/signalr?encauthtoken=null&id=138wrZbP_tlDuEZCSNtsng]

CAUSE: Cookies value is larger than value limit [4096 Bytes].

how can we solve this.

Thanks


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    It may be that your claims contain too much information, which leads to a long content of jwt token.

    You can consider storing the token in the browser's localStorage.

    Use LocalStorageService instead of UtilsService.

    We will also consider making the same change in zero. https://github.com/aspnetzero/aspnet-zero-core/issues/3301