Google OAuth: Error 403: disallowed_useragent (sign-in from an embedded WebView)
Google blocks OAuth sign-in inside embedded WebViews (in-app browsers, Electron BrowserWindow, React Native WebView).
Error 403: disallowed_useragentThis user-agent is not permitted to make an OAuth authorisation request to Google Meaning
Google requires the system browser or Custom Tabs/ASWebAuthenticationSession for OAuth. In-app browsers of social apps (Instagram, Facebook) also trigger it when users open your site there.
Common causes
- OAuth inside WKWebView/Android WebView/Electron
- Link opened in Instagram/Facebook/LinkedIn in-app browser
- Custom user agent spoofing
⚡ Quick fix
- Use AppAuth / ASWebAuthenticationSession / Custom Tabs
- In web apps, detect in-app browsers and ask users to open in the system browser
- Use Google’s native sign-in SDKs
Detailed fix by platform
Swift
- bash
let session = ASWebAuthenticationSession(url: authURL, callbackURLScheme: "com.example.app") { url, error in /* handle */ } session.presentationContextProvider = self session.start()
How to diagnose
- Context — WebView or system browser?
- Source — In-app browser of another app?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Authentication
- invalid_token invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed)
- Access blocked: has not completed the Google verification process Google OAuth: Error 403: access_denied — The developer hasn't given you access to this app / has not completed the Google verification process
- redirect_uri_mismatch OAuth Error: redirect_uri_mismatch
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 12 Oct 2026