Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3637

Netsuite OAuth 2.0 refresh token expire how to get new one without going to consent page again

$
0
0

I'm integrating Netsuite with PHP using OAuth 2.0 and it is successfully done. By default netsuite access token stay for 60 minutes and refresh token for 7 days. Once accessToken expires I can get the new one using refreshAccessToken.

Till here everything is good, but when refreshAccessToken expires I didn't find any way to get new refreshAccessToken other than authorising the app again.

As per the documentation:

When the refresh token expires, the token endpoint returns an invalid_grant error. The application must go back to Step One of the OAuth 2.0 authorization code grant flow to restart the process.

But as I'm calling REST api using CRONS so the challenge is how I'll handle consent screen?

I also followed this link to pass prompt as none but also doesn't work.enter image description here

Need your help if there is any way to get the new refreshAccessToken without going to consent page.

Thanks in advance for your help!


Viewing all articles
Browse latest Browse all 3637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>