|
@@ -412,8 +412,8 @@ async function refreshAccessToken(shopname: string, refreshToken: string) {
|
|
|
throw new Error('ShopRenter credentials not configured')
|
|
throw new Error('ShopRenter credentials not configured')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const hostname = `${shopname}.shoprenter.hu`
|
|
|
|
|
- const path = '/oauth/token'
|
|
|
|
|
|
|
+ const hostname = `${shopname}.api2.myshoprenter.hu`
|
|
|
|
|
+ const path = '/api/oauth/token'
|
|
|
|
|
|
|
|
const requestBody = JSON.stringify({
|
|
const requestBody = JSON.stringify({
|
|
|
grant_type: 'refresh_token',
|
|
grant_type: 'refresh_token',
|