MetaMask / MetaMask/metamask-mobile
Google oauth is broken in metamask browser
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
**Describe the bug**
When user open app via MetaMask mobile browser and trying to use google Authorization - google return error 403 disallowed_useragent instead of login form.
**Screenshots**

**To Reproduce**
Works with any website that have google oauth. For example:
1. Open metamask mobile app.
2. Open drawer menu and navigate to Browser.
3. Open https://id.atlassian.com/login.
4. Press "Login with Google".
5. See 403 error.
**Expected behavior**
When user open app via MetaMask mobile browser and trying to use google Authorization - google return login form and let user proceed.
**Smartphone (please complete the following information):**
- Device: iPhone 11
- OS: iOs 16.1.1
- App Version: 5.14.0(1055)
-------------------------------------------------------------
_to be added after bug submission by internal support / PM_
**Severity**
- How critical is the impact of this bug on a user?
- Add stats if available on % of customers impacted
- Is this visible to all users?
- Is this tech debt?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the flow in the MetaMask mobile app's Browser on an iPhone: open id.atlassian.com/login and select "Login with Google." Trace the mobile browser's Google OAuth handling and verify that the flow shows Google's login form instead of returning the 403 disallowed_useragent error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native, typescript
- Domain
- authentication, mobile-dev, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100