fix(core): update

This commit is contained in:
Philipp Kunz 2022-02-19 13:32:57 +01:00
parent edb3160f35
commit 0c9decce3e

View File

@ -33,7 +33,7 @@ Use TypeScript for best inclass intellisense
import * as tink from '@mojoio/tink';
const tinkAccount = new TinkAccount('<clientId>', '<clientSecret>');
const tinkUser = await tinkAccount.createTinkUser('<YourOwnUniqueUserId>');
const tinkUser = await tinkAccount.createTinkUser('<YourOwnUniqueUserId/externalUserId>');
const tinkLinkUrl = await tinkUser.getTinkLink('<marketCode like DE>');
// present the link to your user to connect their bank accounts to the tink platform.
@ -47,6 +47,9 @@ for (const providerConsent of tinkProviderConsents) {
}
}
// additional stuff
const existingTinkUser = await tinkAccount.getUser('<YourOwnUniqueUserId/externalUserId>')
await existingTinkuser.delete(); // delete the user on the tink platform
```