79272109

Date: 2024-12-11 14:45:30
Score: 0.5
Natty:
Report link

As this is a client side issue its solution lies in the client side.

I just needed to configure cookies in client side:

    builder.Services
        .AddAuthentication(...)
        .AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, o =>
        {
            o.Cookie.MaxAge = TimeSpan.FromDays(180);
        })
        .AddOpenIdConnect(...);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Farzad M.