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",
|
"name": "@mojoio/tink",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mojoio/tink",
|
"name": "@mojoio/tink",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartrequest": "^1.1.56"
|
"@pushrocks/smartrequest": "^1.1.56"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/tink",
|
"name": "@mojoio/tink",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "an unofficial api abstraction for tink.com",
|
"description": "an unofficial api abstraction for tink.com",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -52,7 +52,7 @@ export class TinkAccount {
|
|||||||
return clientAccessToken;
|
return clientAccessToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getUserAuthroizationCode(
|
public async getUserAuthorizationCode(
|
||||||
externalUserIdArg: string,
|
externalUserIdArg: string,
|
||||||
actorCLientIdArg: string,
|
actorCLientIdArg: string,
|
||||||
scopeArg: string
|
scopeArg: string
|
||||||
@ -131,7 +131,7 @@ export class TinkAccount {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async getTinkLinkCode(externalUserIdArg: string) {
|
public async getTinkLinkCode(externalUserIdArg: string) {
|
||||||
const authorizationCode = this.getUserAuthroizationCode(
|
const authorizationCode = this.getUserAuthorizationCode(
|
||||||
externalUserIdArg,
|
externalUserIdArg,
|
||||||
'df05e4b379934cd09963197cc855bfe9',
|
'df05e4b379934cd09963197cc855bfe9',
|
||||||
'authorization:read,authorization:grant,credentials:refresh,credentials:read,credentials:write,providers:read,user:read'
|
'authorization:read,authorization:grant,credentials:refresh,credentials:read,credentials:write,providers:read,user:read'
|
||||||
|
@ -38,7 +38,7 @@ export class TinkUser {
|
|||||||
* deletes the user
|
* deletes the user
|
||||||
*/
|
*/
|
||||||
public async delete() {
|
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 accessToken = await this.tinkAccountRef.getUserAccessToken(authorizationCode);
|
||||||
const response = await this.tinkAccountRef.request({
|
const response = await this.tinkAccountRef.request({
|
||||||
methodArg: 'POST',
|
methodArg: 'POST',
|
||||||
|
Reference in New Issue
Block a user