Skip to content
  • There are no suggestions because the search field is empty.

How to Regenerate a Magento 2 Token

Learn how to regenerate a Magento 2 token for OAuth-based authentication and update it in Webgility for seamless integration.


Overview:

You may need to regenerate your Magento 2 token to refresh your integration or properly utilize the OAuth workflow. These tokens serve as "keys" to access resources, with access tokens typically having a shorter lifespan than refresh tokens.

Steps to Regenerate Access Tokens:

  1. Enable OAuth Authentication:
    • In Magento 2, ensure OAuth-based authentication is enabled.

    • Navigate to Stores > Configurations > Services > Consumer Settings and enable OAuth.

       

  2. Navigate to Integrations:
    • From the left-hand panel, go to System > Integrations.

       

  3. Configure Resource Access:
    • On the Integrations page, verify selected resources.

    • Under Basic Settings, go to Resource Access and select Custom.

    • Enable resources for Sales, Catalogs, Customers, and Stores.

    • Click Save to apply changes.

       

  4. Reauthorize and Get New Access Token:
    • Return to the Integrations page.

    • Click on Reauthorize and copy the newly generated access token.

       

  5. Update Access Token in Webgility:

Need Help?

If the issue persists, feel free to contact us via our chat support. We're here to assist you!