The error message you are seeing is related to the correlation cookie in ASP.NET Core Google Authentication. The correlation cookie is used to prevent cross-site request forgery (CSRF) attacks. The error message indicates that the correlation cookie was not found or was invalid.
To resolve this issue, you can try the following solutions:
Clear Cookies: Clear the cookies in your browser and try again.
Check Cookie Settings: Ensure that the cookie settings in your application are correct. You can check this by navigating to the ConfigureServices
method in your Startup.cs
file and verifying that the cookie settings are correct.
Check Redirect URI: Ensure that the redirect URI in your Google API Console is correct. You can check this by navigating to the Google API Console and verifying that the redirect URI matches the one in your application.
Check Correlation Cookie: Ensure that the correlation cookie is being set correctly. You can check this by adding a breakpoint in your code and verifying that the correlation cookie is being set correctly.
If none of these solutions work, you can try contacting Google support for further assistance. I hope this helps!