async refreshAccessToken(tokenContext) {
        const response = await Superagent.post(process.env.vendor_oauth_token_url).query({
            grant_type: 'refresh_token',
            refresh_token: tokenContext.refresh_token,
            client_id: process.env.vendor_oauth_client_id,
            client_secret: process.env.vendor_oauth_client_secret,
        });
        return response.body;
    }
/**
     * Obtains a new access token using refresh token.
     * @param {*} tokenContext An object representing the result of the getAccessToken call. It contains refresh_token.
     */
Obtains a new access token using refresh token.
@param {*} tokenContext An object representing the result of the getAccessToken call.
Obtains a new access token using refresh token . @param { * } tokenContext An object representing the result of the getAccessToken call .
async refreshAccessToken(tokenContext) {
        const response = await Superagent.post(process.env.vendor_oauth_token_url).query({
            grant_type: 'refresh_token',
            refresh_token: tokenContext.refresh_token,
            client_id: process.env.vendor_oauth_client_id,
            client_secret: process.env.vendor_oauth_client_secret,
        });
        return response.body;
    }
async refreshAccessToken ( tokenContext ) { const response = await Superagent . post ( process . env . vendor_oauth_token_url ) . query ( { grant_type : 'refresh_token' , refresh_token : tokenContext . refresh_token , client_id : process . env . vendor_oauth_client_id , client_secret : process . env . vendor_oauth_client_secret , } ) ; return response . body ; }
Obtains a new access token using refresh token.
Obtains a new access token using refresh token .