Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
570a1cd6b2 | |||
9425a85150 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -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"
|
||||
|
@ -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",
|
||||
|
@ -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'
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user