我遵循this教程,以便从格子API获取交易/帐户详细信息。格式化快速入门指南用户ejs,以便使用onSuccess功能发送到服务器。我如何使用离子创建此令牌?格子:如何在前端创建公共令牌(Ionic/angular)并发送到服务器
格纹快速指南还表明,我们使用的代码的打击
var linkHandler = Plaid.create({
env: 'sandbox',
clientName: 'Client Name',
key: '<PUBLIC_KEY>',
product: ['auth', 'transactions'],
token: '<GENERATED_PUBLIC_TOKEN>',
onSuccess: function(public_token, metadata) {
// You do not need to repeat the /item/public_token/exchange
// process when a user uses Link in update mode.
// The Item's access_token has not changed.
},
还建议,以创建一个公共的令牌,并获得访问令牌使用此代码
// Create a public_token for use with Plaid Link's update mode
client.createPublicToken(ACCESS_TOKEN, (err, result) => {
// Handle err
// Use the generated public_token to initialize Plaid Link in update
// mode for a user's Item so that they can provide updated credentials
// or MFA information
const publicToken = result.public_token;
});
。我无法使用此功能,因为我得到一个错误格子和/或客户端未定义
如何使用Ionic前端和节点后端创建此公共令牌?
这里的工作流程是什么?
在此先感谢
有没有人创造了采用这种架构公共令牌? – Generaldeep