Description
Few months ago one client reported me a problem with logging to my web-site from a mobile device (Android) using Google profile. It took me a while when I could reproduce it.
So, I have a web-site (www.uvvo.eu), which is just a web site and no a mobile application. In MacOS Venture 13.0, using web browser MS Edge v.106.0.1370.52 in Developer Tools when I reduce the size of the screen to the size of a mobile device (e.g. 375 x 667 pixels or 390 x 844) logging in with Google stops working and I get “Error 403: disallowed_useragent”. With larger resolutions logging in with Google is working. In Windows 10, with the same web browser logging in works for all resolutions. Using iPhone and MS Edge, everything works also fine.
I checked the Google OAuth documentation. And it looks like this problem is related to the WebView. However all the fixes I could find are related to the mobile Apps, and not to the web-sites.
Environment
- Operating System: MacOS Venture 13.0
- Node version: 18.12.0
- passport version: 0.6.0
- passport-google-oauth version: 2.0.0