-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PlaidLink OAuth] Add web redirect_uri to /bank-accounts
page
#6259
Conversation
Doing a bit more testing and clean-up on Web then this should be ready for review soon |
Nice catch @MonilBhavsar. If we don't want to tackle handling the errors now we can do a follow up issue. As long as most users can restart the flow somehow if there's an unexpected error. Although, ideally we can handle this situation correctly.. |
Yeah, believe most users can restart the flow just by clicking away.
Yeah, I think a follow-up issue would make sense and I have a decent idea of how we would catch the error using one of the PlaidLink's emitted events. |
Just tested with Chase prod credentials on web and the flow worked super smooth! I'm going to add a checklist for each institution across all platforms to the PR description so we can keep track of progress. |
Quick report on status of Prod testing for this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One NAB
i checked off wells fargo for Web (web-e/web-s/mobile-e code bases were all tested and worked) and Mobile Web (new dot). I left notes here for what happened on new dot ios https://expensify.slack.com/archives/C03TQ48KC/p1638394223326600?thread_ts=1637784112.158700&cid=C03TQ48KC didn't yet try android, i'll do that tomorrow. |
The last web prod bank passes QA! |
34d2422
@nickmurray47 Tested Wells Fargo with @bondydaa's creds after the changes. Works great on both iOS and Android so I think we are good. And I think we can merge after the lint errors are fixed? Also think if we do this we should create a follow up issue to ensure the testing is completed for the other platforms. |
Sounds good! Still testing a couple of flows for Chase and will tag you for final review once that is all done. Edit: new testing tracking issue here https://github.com/Expensify/Expensify/issues/187280 |
Going to self-merge to move things along and so that things don't break on Web for the OAuth institutions (if they haven't broken already since we're past the deadline) |
[PlaidLink OAuth] Add web redirect_uri to `/bank-accounts` page (cherry picked from commit 85799c2)
…6259 🍒 Cherry pick PR #6259 to staging 🍒
🚀 Deployed to staging by @nickmurray47 in version: 1.1.17-8 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.18-3 🚀
|
cc @Dal-Papa
Details
This PR updates our Plaid integration to use OAuth for participating banks. The OAuth flow redirects the user away from new.e to their banking institution login then returns them to us once they are credentialed and we reinitialize the PlaidLink on our end.
The new param
redirect_uri
returns us to thebank-account
route where the user can finish setting up their account. We reinitialize the PlaidLink by passing it the existingPlaidLinkToken
and thereceivedRedirectURI
which includes the OAuth URI and the stateID.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/182959
Tests
Pull latest Web-S
Replace
redirect_uri
in src/libs/getPlaidLinkTokenParameters/index.js with:Platypus OAuth
(since not all banks in sandbox mode have OAuth setup).Chase
business bank account usinguser_good
andpass_good
and make sure it gets added.QA Steps
Same as the above, except using a participating OAuth bank like Chase.
Tested On
Screenshots
Web
prod screenshots
screenshots
Mobile Web
prod screenshots
Desktop
prod screenshots
screenshots
iOS
prod screenshots
Android
prod screenshots