Compare commits

..

6 Commits

Author SHA1 Message Date
0c391c1fd1 1.0.14 2022-02-19 13:32:57 +01:00
0c9decce3e fix(core): update 2022-02-19 13:32:57 +01:00
edb3160f35 1.0.13 2022-02-19 13:30:47 +01:00
0eb51cf3c5 fix(core): update 2022-02-19 13:30:46 +01:00
80373424b4 1.0.12 2022-02-19 13:29:08 +01:00
d108baf672 fix(core): update 2022-02-19 13:29:08 +01:00
3 changed files with 9 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@mojoio/tink",
"version": "1.0.11",
"version": "1.0.14",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@mojoio/tink",
"version": "1.0.11",
"version": "1.0.14",
"license": "MIT",
"dependencies": {
"@pushrocks/smartrequest": "^1.1.56"

View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/tink",
"version": "1.0.11",
"version": "1.0.14",
"private": false,
"description": "an unofficial api abstraction for tink.com",
"main": "dist_ts/index.js",

View File

@ -32,9 +32,9 @@ Use TypeScript for best inclass intellisense
// this example assumes toplevel await
import * as tink from '@mojoio/tink';
const tinkAccount = new TinkAccount('clientId', 'clientSecret');
const tinkUser = await tinkAccount.createTinkUser('YouOwnUniqueUserId');
const tinkLinkUrl = await tinkUser.getTinkLink();
const tinkAccount = new TinkAccount('<clientId>', '<clientSecret>');
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
```