javascript - Display custom user name and password modal dialog with Plaid Link -


i'm using plaid link custom integration , far able pull list of institutions. great because don't have hardcode list of institutions , can display custom modal dialog selection institutions.

now next step let user enter credentials public_token , metadata through onsuccess callback. plaid link wants me call linkhandler.open type of selected institution passed in, display plaid modal dialog allows user enter credentials , confirm. onsuccess callback called.

but if want let user enter user name , password through custom modal. there linkhandler.auth(username, password) cause onsuccess called in similar manner, without displaying modal dialog can't style?

here's snippet, it's copy pasted docs, no surprises there:

let plaidlink = plaid.create({   env: "tartan",   clientname: "",   key: "blahblahblah", // correct public key.   product: "auth",   onload: () => {     console.debug("onload");   },   onsuccess: (publictoken, metadata) => {     console.debug("onsuccess");   },   onexit: () => {     console.debug("onexit");   } });  // don't want this! //plaidlink.open("bofa");   // want this, cool, can same credential dialog? console.debug("institutions", plaidlink.institutions); 

i'm afraid feature you're looking not exist in plaid link, , won't implemented in near future. because link built handle rather complicated flow , range of possibilities each bank has.

for simple integration wells fargo, requires no mfa question or answer, proposal work.

plaid.auth('wells', username, password) 

but other institutions chase , bank of america, both have variety of mfa questions, flow more complex , not possible 1 method call.

plaid.auth('chase', username, password) plaid.mfadevice('chase', device) plaid.mfacode('chase', code) plaid.handlemfaerror('chase', error) // ... 

if want show custom modal users, can opt build own implementation of plaid api. plaid link handles of complexity you, , highly recommend using ensure users have great user-experience. plaid team actively maintains link, it's continuously improving, along new features released frequently.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -