#5478·hoppscotch

[feature]: Automatic OAuth 2.0 Token Generation on Collection Run

Author: Leon-LuuCreated Oct 10, 2025Updated Sep 24, 2026
Labelsfeature

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Summary: Currently, Hoppscotch requires users to manually generate an OAuth 2.0 token from the Collection Properties before running a collection. We propose that, instead, Hoppscotch should always trigger the OAuth 2.0 token generation process automatically once at the start of a collection run. The generated token should then be used for all child requests within that collection.

Description: The current workflow introduces unnecessary manual steps and risk of using outdated tokens. When running a collection that uses OAuth 2.0, users must go to Collection Properties and click "Generate Token" before execution. This is not ideal for automation or streamlined workflows.

Proposed Enhancement:

When a user initiates a collection run, Hoppscotch should always trigger the OAuth 2.0 token generation or refresh process at the very start of the run, regardless of token status. The newly generated token should be set and shared automatically for all child requests within the collection that require OAuth 2.0 authentication. Users should not need to open Collection Properties or press any buttons—the process should be fully automatic as part of the collection execution flow. Optionally, provide feedback or logs to inform users that the token was generated at the start of the run.

Image

Why should this be worked on?

Key Points:

Single Token Generation: Only one token generation per collection run, not per request. Token Propagation: The generated token applies to all child requests within the collection. No Manual Steps: Eliminates the need for manual interaction in the Collection Properties panel.

Benefits:

Streamlined Workflow: Simplifies the process for users running collections, especially in automated or CI/CD environments. Consistency: Ensures all requests in the collection use a fresh, valid token generated at the time of execution. Reliability: Reduces the risk of authentication failures due to forgotten or expired tokens.