More of a general coding question here: I'm using ...
# suitescript
e
More of a general coding question here: I'm using an API that requires a Bearer token. I request a Bearer token from a specific API endpoint and it gives me back the token along with "expires_in": "3599" Then I can successfully make POST requests for a while, then I get an ERROR_AUTHORIZATION after a while. Does the "expires_in": "3599" mean that the bearer token is only good for 3599 seconds? or 3599 POST requests? or something else?
e
Thanks, though it doesn't say explicitly, I'm going to guess that 3600 is in seconds, because from my logs it appears to be about an hour that it was working for
m
Yup it's seconds, If you want the official source https://datatracker.ietf.org/doc/html/rfc6749#section-4.2.2