We are looking into OAuth2.0 and I was wondering h...
# administration
c
We are looking into OAuth2.0 and I was wondering how long does the bearer token last? I see it says the refresh token only lasts 7 days, but does the bearer token ever expire?
b
HTTP Response for Step Two documents how long the refresh token and access token last
2021.2 introduces OAuth 2.0 Client Credentials Flow (Must be viewed from an account on 2021.2)
c
I saw this section, but they talk about the refresh token expiring in 7 days. I wasn't sure if the bearer token that the refresh token provides is also 7 days. Also it seems like the client credential flow is what we would want
b
the bearer token is the access token
c
Sorry I guess I'm confused. It says that token expired in 60 minutes. I set this up yesterday and the Restlet continues to work, but I wasn't sure if it would stop working in 7 days. I figured once I got the bearer token it would at least last for 90 days or some longer point of time
b
Access tokens last 3600 seconds
A refresh token is used to get new access tokens
The refresh token lasts 7 days
c
ok. I may have to call Netsuite about this because the access token I got from Step 3 of the process is what I am using in the Postman authorization (Type: bearer token) for my Restlet. That has been working for a full day so far. but if it is going to expire in 7 days than it's not a great solution and we may end up waiting for 2021.2