fix(core): update

This commit is contained in:
Philipp Kunz 2022-02-19 01:37:47 +01:00
parent 2b902aa31b
commit 9425a85150
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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',