From 06a9d88403ca6b91e865b47d5de0f123c8ed5baf Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 21 Jun 2022 14:13:09 -0500 Subject: [PATCH] fix(auth): Update OAuth2Client.ts (#25) --- src/Authentication/OAuth2Client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Authentication/OAuth2Client.ts b/src/Authentication/OAuth2Client.ts index c72be2b..f0078a7 100644 --- a/src/Authentication/OAuth2Client.ts +++ b/src/Authentication/OAuth2Client.ts @@ -58,7 +58,7 @@ export class OAuth2Client { */ public async getAccessTokenFromRefreshToken(refreshToken: string): Promise { return await axios - .put( + .post( 'https://api.mps.ford.com/api/token/v2/cat-with-refresh-token', { refresh_token: refreshToken, @@ -109,7 +109,7 @@ export class OAuth2Client { .then(async res => { if (res.status === 200 && res.data.access_token) { return await axios - .put( + .post( 'https://api.mps.ford.com/api/token/v2/cat-with-ci-access-token', { ciToken: res.data.access_token,