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,