Skip to content

Commit

Permalink
fix(auth): Update OAuth2Client.ts (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian authored Jun 21, 2022
1 parent 07811de commit 06a9d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Authentication/OAuth2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class OAuth2Client {
*/
public async getAccessTokenFromRefreshToken(refreshToken: string): Promise<AccessToken> {
return await axios
.put(
.post(
'https://api.mps.ford.com/api/token/v2/cat-with-refresh-token',
{
refresh_token: refreshToken,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 06a9d88

Please sign in to comment.