i added thi url in google cloud console in credentials and my website url is which is working fine bu when login with google then it show redirect uri mismatch
The redirect URI mismatch happens because the redirect_uri in your Django app doesn’t match what’s registered in Google Cloud Console.
Here’s how you may fix it:
Check the Redirect URI:
Ensure the URI in your app matches the one in Google Cloud Console (e.g., https://example.com/oauth2callback).1. Update Google Cloud Console:
Go to APIs & Services > Credentials > OAuth 2.0 Client IDs.
Add all required URIs (e.g., production, staging, local dev).
Test:
Verify the redirect_uri sent in the request matches exactly what’s registered.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.