This error basically means the redirect URI sent during login does not exactly match the one registered with the OAuth provider. OAuth providers are very strict about this for security reasons. Even a small difference like http vs https, a missing slash, or a different subdomain can trigger error 400: redirect_uri_mismatch.
First thing to check: copy-paste the redirect URL from your app and compare it character by character with what’s in the provider dashboard.