当我使用 un:user_good 和 pw:pass_good 时,我得到了附加的屏幕
而且它不返回 accessToken 我已经在我的 AppDelegate 中添加了我的公钥
[![@IBAction fu][1]][1]nc plaidConnectButton(_ sender: Any) {
let plaidLink = PLDLinkNavigationViewController(environment: .tartan, product: .connect)!
plaidLink.linkDelegate = self
plaidLink.providesPresentationContextTransitionStyle = true
plaidLink.definesPresentationContext = true
plaidLink.modalPresentationStyle = .custom
self.present(plaidLink, animated: true, completion: nil)
}
func linkNavigationContoller(_ navigationController: PLDLinkNavigationViewController!, didFinishWithAccessToken accessToken: String!) {
print("success \(accessToken)")
myAPIClient.connectAddBank(bankToken: accessToken, completion:{
(error) in
if(error != nil) {
print(error.debugDescription)
} else {
print("successfully added bank")
self.dismiss(animated: true, completion: nil)
}
})
}
func linkNavigationControllerDidFinish(withBankNotListed navigationController: PLDLinkNavigationViewController!) {
print("Manually enter bank info?")
self.performSegue(withIdentifier: "unlistedBankSegue", sender: self)
}
func linkNavigationControllerDidCancel(_ navigationController: PLDLinkNavigationViewController!) {
self.dismiss(animated: true, completion: nil)
}
请帮忙