mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-12 22:50:06 +00:00
fix(refreshTokensForViya): fixed FormData logic
This commit is contained in:
@@ -29,9 +29,12 @@ export async function getTokens(
|
||||
const error =
|
||||
'Unable to obtain new access token. Your refresh token has expired.'
|
||||
logger.error(error)
|
||||
|
||||
throw new Error(error)
|
||||
}
|
||||
|
||||
logger.info('Refreshing access and refresh tokens.')
|
||||
|
||||
const tokens =
|
||||
serverType === ServerType.SasViya
|
||||
? await refreshTokensForViya(
|
||||
|
||||
Reference in New Issue
Block a user