OAuth Error: redirect_uri_mismatch
Last updated: April 2026
OAuth Error Response
error: redirect_uri_mismatch
error_description: The redirect_uri does not match any registered redirect_uris.
The redirect_uri in your authorization request does not exactly match any URI registered in your provider dashboard. The match is case-sensitive and includes protocol, domain, port, and path.
Common mismatches
https://yourapp.com/callback # registered https://yourapp.com/callback/ # sent โ trailing slash mismatch https://yourapp.com/callback # registered http://yourapp.com/callback # sent โ HTTP vs HTTPS http://localhost:3000/callback # registered http://localhost:3001/callback # sent โ port mismatch
Fix by provider
Auth0: Application Settings โ Allowed Callback URLs.
Okta: Application โ Sign-in redirect URIs.
Google: Cloud Console โ Credentials โ Authorized redirect URIs.
Cognito: App client โ Callback URLs.
Debug โ find the URI your app sends
# Check the authorization URL your app constructs # Look for redirect_uri= parameter โ must match registered URI exactly