I am trying to implement OAuth with Plaid-Link but keep on getting this error on the server-side:
plaid.errors.InvalidRequestError: OAuth redirect URI must be configured in the developer dashboard. See https://plaid.com/docs/#oauth-redirect-uris
I am running my application locally (sandbox mode), I have a backend server running on localhost:8000 and the client-side application running on localhost:3005
I have configured in the developer dashboard the redirect URLs (see image here)
I am using the Python SDK, here is an example of the CreateLink call in my server:
response = client.LinkToken.create({
'user': {
'client_user_id': str(client_user_id),
},
'client_name': 'XYZ Corporation',
'products': ['auth'],
'country_codes': COUNTRY_CODES,
'language': 'en',
'redirect_uri': 'http://locahost:3005/landing-rc-solo/link-bank'
})
Would you know what's the issue here?
Thanks a lot for your help!
Basically, since you're on localhost and just for development's sake, what I did was to remove the redirect altogether. If this is fine for you then the error should go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With