Skip to content

Commit b310d86

Browse files
committed
fix: refresh &updated token url
1 parent 97876b4 commit b310d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/oauthHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default class OAuthHandler {
133133

134134
this.axiosInstance.defaults.headers = this._getHeaders()
135135
try {
136-
const response = await this.axiosInstance.post(`${this.OAuthBaseURL}/apps-api/apps/token`, body)
136+
const response = await this.axiosInstance.post(`${this.developerHubBaseUrl}/token`, body)
137137

138138
this._saveTokens(response.data)
139139
return response.data
@@ -180,7 +180,7 @@ export default class OAuthHandler {
180180

181181
this.axiosInstance.defaults.headers = this._getHeaders()
182182
try {
183-
const response = await this.axiosInstance.post(`${this.developerHubBaseUrl}/apps/token`, body)
183+
const response = await this.axiosInstance.post(`${this.developerHubBaseUrl}/token`, body)
184184

185185
const data = response.data
186186
this.axiosInstance.oauth.accessToken = data.access_token

0 commit comments

Comments
 (0)