Skip to content

Add support for per-request Token Lifetime customization #2

Description

@edorphy

Most request allow for a token with a lifetime of up to 20 minutes. There are, however, some APIs that permit a much longer token.

https://developer.apple.com/documentation/appstoreconnectapi/generating-tokens-for-api-requests#Determine-the-Appropriate-Token-Lifetime

Add a mechanism to allow per-request modifications of the token lifetime.

Concepts:

  • Mechanic to inject optional closure into the middleware that exposes the operationID
  • Use task-local value to inject the token lifetime at the call site to be read in the middleware

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions