Compare commits

..

2 Commits

Author SHA1 Message Date
570a1cd6b2 1.0.8 2022-02-19 01:37:48 +01:00
9425a85150 fix(core): update 2022-02-19 01:37:47 +01:00
4 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -52,7 +52,7 @@ export class TinkAccount {
return clientAccessToken;
}
public async getUserAuthroizationCode(
public async getUserAuthorizationCode(
externalUserIdArg: string,
actorCLientIdArg: string,
scopeArg: string
@ -131,7 +131,7 @@ export class TinkAccount {
}
public async getTinkLinkCode(externalUserIdArg: string) {
const authorizationCode = this.getUserAuthroizationCode(
const authorizationCode = this.getUserAuthorizationCode(
externalUserIdArg,
'df05e4b379934cd09963197cc855bfe9',
'authorization:read,authorization:grant,credentials:refresh,credentials:read,credentials:write,providers:read,user:read'

View File

@ -38,7 +38,7 @@ export class TinkUser {
* deletes the user
*/
public async delete() {
const authorizationCode = await this.tinkAccountRef.getUserAuthroizationCode(this.externalUserIdArg, this.tinkAccountRef.clientId, 'user:delete');
const authorizationCode = await this.tinkAccountRef.getUserAuthorizationCode(this.externalUserIdArg, this.tinkAccountRef.clientId, 'user:delete');
const accessToken = await this.tinkAccountRef.getUserAccessToken(authorizationCode);
const response = await this.tinkAccountRef.request({
methodArg: 'POST',