Skip to main content

Access token expiration

  • April 26, 2024
  • 1 reply
  • 127 views

I am using react to fetch statistical api and I have to use access token to access api. I generate this token using Postman and it has expiration of 60 min. Is there anyway I would update access token without manually changing access token.

const headers = {
    Authorization: `Bearer ${'ACCES TOKEN'}`,
    'Content-Type': 'application/json',
    Accept: 'application/json'
  };

1 reply

Hi, if you are using Postman then you would need to manually update your access token using the API. There is more information about credentials here in the documentation that I’m sure you have already read through.

If you are interested in automating your workflows then I would recommend you look into the Sentinel Hub Python Package, where you can use a configuration file to access the APIs. You can read more about this here.