From 9ffe6b791e0aa6d782eea08dc3daa1964187709b Mon Sep 17 00:00:00 2001 From: Tyler Myracle Date: Wed, 17 Jan 2024 11:09:42 -0600 Subject: [PATCH] fix 403 issue --- libs/teller-api/src/teller-api.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/teller-api/src/teller-api.ts b/libs/teller-api/src/teller-api.ts index b6fe48d0..599af838 100644 --- a/libs/teller-api/src/teller-api.ts +++ b/libs/teller-api/src/teller-api.ts @@ -158,6 +158,11 @@ export class TellerApi { password: '', }, }) + } else if (this.api.defaults.auth?.username !== accessToken) { + this.api.defaults.auth = { + username: accessToken, + password: '', + } } return this.api