Hi I just want to make sure that if I created an integration via OAuth authentication
I would use the access token of which for Magento 2 API calls. It is my experience that they never expire, is this claim absolutely true?
Insofar that the behavior is different from the admin and customer access tokens that do expire and have to regenerate a token else get a 401 error
Solved! Go to Solution.
Hi @jad_atoui,
For tokens generated from activating an integration under System > Extensions > Integrations:
As the process of registering the integration proceeds, Magento creates the tokens that the application needs for authentication. It first creates a request token. This token is short-lived and must be exchanged for an access token. Access tokens are long-lived and will not expire unless the merchant revokes access from the application.
Hope this can help you! Let me know if you need further assistance.
__________
If issue solved, Click Kudos & Accept as Solution.
Hi @jad_atoui,
It will expire depending on the time that you set in the config.
You can increase the lifetime of these tokens in Stores -> Settings -> Configuration -> Services -> OAuth.
Hope this can help you! Let me know if you need further assistance.
__________
if issue solved, Click Kudos & Accept as Solution.
Hi @jad_atoui,
For tokens generated from activating an integration under System > Extensions > Integrations:
As the process of registering the integration proceeds, Magento creates the tokens that the application needs for authentication. It first creates a request token. This token is short-lived and must be exchanged for an access token. Access tokens are long-lived and will not expire unless the merchant revokes access from the application.
Hope this can help you! Let me know if you need further assistance.
__________
If issue solved, Click Kudos & Accept as Solution.
Thank you Marcus, I am finding it to be the case that they are not expiring as long as they are not manually revoked