Hi,
Hope you're doing well.
I'm currently integrating my application with NetSuite and working with the REST APIs. Initially, I set up OAuth 2.0 with the authorization code grant, but later discovered that the refresh token is only valid for 7 days, requiring users to manually re-authorize via redirection to NetSuite. This limitation is a blocker for my use case.
To resolve this, I switched to the
Client Credentials (M2M) flow. According to the documentation, the access token in this flow is valid for 2 years, which suits my needs. However, I noticed another section in the documentation mentioning a
90-day expiration, which has caused some confusion.
Here are the links I’ve been referring to:
•
OAuth 2.0 Token-Based Authentication
•
Managing Client Credentials
Can anyone please help clarify the actual expiration period for tokens in the Client Credentials flow ?