2

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!

Cyzanfar
  • 6,997
  • 9
  • 43
  • 81

2 Answers2

2

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.

Wale
  • 1,644
  • 15
  • 31
0

Assuming you haven't made a silly mistake like adding the redirect_uri to the developer dashboard for a different client_id, that all seems right to me. Would you mind filing a ticket with Plaid support so someone with the right access can dig into this a bit more closely?

Alex
  • 1,245
  • 1
  • 9
  • 10