Skip to content

Commit

Permalink
Merge pull request #38374 from bernhardoj/fix/38099-plaid-link-oauth-…
Browse files Browse the repository at this point in the history
…error

Fix plaid link OAuth error message when choosing Chase bank
  • Loading branch information
iwiznia authored Mar 19, 2024
2 parents 014557c + 9f27106 commit 4ac5d6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libs/API/parameters/OpenPlaidBankLoginParams.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type OpenPlaidBankLoginParams = {
redirectURI: string | undefined;
androidPackage?: string;
allowDebit: boolean;
bankAccountID: number;
};
Expand Down
3 changes: 2 additions & 1 deletion src/libs/actions/Plaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import ONYXKEYS from '@src/ONYXKEYS';
*/
function openPlaidBankLogin(allowDebit: boolean, bankAccountID: number) {
// redirect_uri needs to be in kebab case convention because that's how it's passed to the backend
const {redirectURI} = getPlaidLinkTokenParameters();
const {redirectURI, androidPackage} = getPlaidLinkTokenParameters();

const params: OpenPlaidBankLoginParams = {
redirectURI,
androidPackage,
allowDebit,
bankAccountID,
};
Expand Down

0 comments on commit 4ac5d6c

Please sign in to comment.