can i create an access token for netsuite that las...
# ask-stanley-ai
n
can i create an access token for netsuite that lasts for more than an hour?
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Based on the information available in the provided Slack threads, it appears that the lifespan of an access token in NetSuite's OAuth 2.0 implementation is fixed at 1 hour. This duration cannot be extended or refreshed beyond this limit. Additionally, the refresh token, which can be used to obtain a new access token once the original has expired, is valid for 7 days. This duration is also fixed and cannot be extended or refreshed. There is no API or function available in NetSuite that allows you to specify a custom lifespan for an access token. Therefore, it is not possible to create an access token that lasts for more than an hour or a refresh token that lasts for more than 7 days. This limitation can pose challenges for long-term integrations, as it requires the user to manually refresh the token every week to keep the integration running. Please note that this information is based on the current implementation of NetSuite's OAuth 2.0 and may change in future updates.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.865397871
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850523472
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83412534
Please provide your feedback on this answer.