I use google auth in my app (.net core 3.1). I used below setting in my startup class
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationSc