fix(core): update
This commit is contained in:
parent
edb3160f35
commit
0c9decce3e
@ -33,7 +33,7 @@ Use TypeScript for best inclass intellisense
|
|||||||
import * as tink from '@mojoio/tink';
|
import * as tink from '@mojoio/tink';
|
||||||
|
|
||||||
const tinkAccount = new TinkAccount('<clientId>', '<clientSecret>');
|
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>');
|
const tinkLinkUrl = await tinkUser.getTinkLink('<marketCode like DE>');
|
||||||
|
|
||||||
// present the link to your user to connect their bank accounts to the tink platform.
|
// 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user