After struggling for three hours, and making a useless bunch of changes in my code and server configuration, I finally found the solution to this:
When you finish your coding, and test it in your localhost deployment, you can login using Google and there’s no problem in getting all the user profile information.
Then you deploy the application in your cloud server environment and a “no message” error appears and doesn’t allow you to log into your application.
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.