I am using google authentication in core 3.1. Previously, my code was working fine but after having system format the project is giving me an exception. *ArgumentException: The 'ClientId' option must be provided. (Parameter 'ClientId') Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions.Validate()
I have given the Client ID in startup which is like this:
services.AddAuthentication()
.AddGoogle(options =>
{
IConfigurationSection googleAuthNSection =
Configuration.GetSection("Authentication:Google");
options.ClientId = googleAuthNSection["7111841*********"];
options.ClientSecret = googleAuthNSection["uc**************"];
});
Please help me with this