fix(core): update
This commit is contained in:
parent
2b902aa31b
commit
9425a85150
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user