Skip to content

Commit 06a9d88

Browse files
author
Ian
authored
fix(auth): Update OAuth2Client.ts (#25)
1 parent 07811de commit 06a9d88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Authentication/OAuth2Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class OAuth2Client {
5858
*/
5959
public async getAccessTokenFromRefreshToken(refreshToken: string): Promise<AccessToken> {
6060
return await axios
61-
.put(
61+
.post(
6262
'https://api.mps.ford.com/api/token/v2/cat-with-refresh-token',
6363
{
6464
refresh_token: refreshToken,
@@ -109,7 +109,7 @@ export class OAuth2Client {
109109
.then(async res => {
110110
if (res.status === 200 && res.data.access_token) {
111111
return await axios
112-
.put(
112+
.post(
113113
'https://api.mps.ford.com/api/token/v2/cat-with-ci-access-token',
114114
{
115115
ciToken: res.data.access_token,

0 commit comments

Comments
 (0)