Skip to content

feat/EXT-7110/createToolClient-accessToken-runtime-evaluation#305

Draft
Michael Pineiro (michaelpineirocontentful) wants to merge 1 commit intomainfrom
feat/EXT-7110/createToolClient-accessToken-runtime-evaluation
Draft

feat/EXT-7110/createToolClient-accessToken-runtime-evaluation#305
Michael Pineiro (michaelpineirocontentful) wants to merge 1 commit intomainfrom
feat/EXT-7110/createToolClient-accessToken-runtime-evaluation

Conversation

@michaelpineirocontentful

Summary

The client can now evaluate accessTokens at execute time.

Description

  • createToolClient is async
  • ContentfulConfig.accessToken can be either a string OR a function that returns a string promise

Motivation and Context

This supports cases where the accessToken may change (i.e. rotation, expiration, etc).

PR Checklist

  • I have read the CONTRIBUTING.md file
  • All commits follow conventional commits
  • Documentation is updated (if necessary)
  • PR doesn't contain any sensitive information
  • There are no breaking changes

# Purpose
The client can now evaluate accessTokens at execute time, supporting cases where the accessToken may change (i.e. rotation, expiration, etc).

# Key changes
- `createToolClient` is async
- `ContentfulConfig.accessToken` can be either a string OR a function that returns a string promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant