cryptoadvance / cryptoadvance/specter-desktop
error: redirect_uri_mismatch
- Dominant language
- Python
- Stars
- 847
- Forks
- 259
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 2
Description
> # oops! something went wrong
> ```
> error: redirect_uri_mismatch
> error_description: redirect_uri did not match any of the client's registered redirect_uris
> state: kjkmdskdmsmmsmdslmdlsm
> ```
OAuth with Swan is not working and throws a `redirect_uri_mismatch` error instead.
**Steps To Reproduce**
1. Log in to specter desktop, e.g. 'http://umbrel.local:25441'
2. Click on '+ Choose plugins'
3. Click on 'Swan'
4. Click on 'Existing Swan users'
5. Click on 'Link your account'
6. New tab opens presenting the error shown in the screenshot
`https://api.swanbitcoin.com/oidc/auth?client_id=specter&redirect_uri=http://umbrel.local:25441/svc/swan/oauth2/callback&response_type=code&response_mode=query&code_challenge=&code_challenge_method=S256&state=kjkmdskdmsmmsmdslmdlsm&scope=offline_access%20v1%20write:vendor_wallet%20read:vendor_wallet%20write:automatic_withdrawal%20read:automatic_withdrawal&prompt=consent`
**Expected behavior**
This has worked at least once at some point in a version of specter desktop prior to updating to 1.13.1. I don't know exactly in which version this regression was introduced though. Auto-withdrawals from Swan to Specter had been working for this account for quite some time. Eventually the auto-withdrawal stopped working which is why I attempted to re-connect the plugin.
**Screenshots**

- Where is your node running: **umbrel**
- Where is your specter running: **umbrel**
- If you're running a binary, which OS: I don't think it matters, but I'm also running specterd hwibridge on **macOS** since I access specter remotely
- Browser: any, I tried Chrome, Brave, Safari and Edge
- Specter Version: **1.13.1**
Contributor guide
Assessment
This issue has not been assessed yet.