Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
0f80623111 | |||
6c02861a79 | |||
a25e758faf | |||
14f2ba0692 | |||
0c391c1fd1 | |||
0c9decce3e | |||
edb3160f35 | |||
0eb51cf3c5 | |||
80373424b4 | |||
d108baf672 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@mojoio/tink",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.16",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@mojoio/tink",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.16",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@pushrocks/smartrequest": "^1.1.56"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/tink",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.16",
|
||||
"private": false,
|
||||
"description": "an unofficial api abstraction for tink.com",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
export * from './tink.classes.tinkaccount';
|
||||
export * from './tink.classes.tinkuser';
|
||||
export * from './tink.classes.tinkuser';
|
||||
export * from './tink.classes.tinkproviderconsent';
|
@ -80,8 +80,6 @@ export class TinkUser {
|
||||
public tinkUserId: string;
|
||||
public externalUserIdArg: string;
|
||||
|
||||
public authorizationToken: string;
|
||||
|
||||
constructor(tinkAccountrefArg: TinkAccount, tinkUserIdArg: string, externalUserIdArg: string) {
|
||||
this.tinkAccountRef = tinkAccountrefArg;
|
||||
this.tinkUserId = tinkUserIdArg;
|
||||
|
Reference in New Issue
Block a user