Skip to content

Conversation

@anitarua
Copy link
Contributor

@anitarua anitarua commented Nov 20, 2025

Closes https://github.com/momentohq/dev-eco-issue-tracker/issues/1264

Deprecates from_environment_variable and from_string which accept v1 and legacy auth tokens. Leaving the functionality though.

Adds from_api_key_v2, from_environment_variables_v2, and from_disposable_token to support the non-legacy api keys.

Uses helper function _is_v2_api_key to determine if a received key is a jwt with the expected v2 claims.

@anitarua anitarua marked this pull request as ready for review December 13, 2025 01:10
@anitarua anitarua requested review from alubbad and nand4011 December 13, 2025 01:10
@danielamiao danielamiao requested a review from malandis December 16, 2025 20:00
@anitarua anitarua requested a review from malandis December 16, 2025 23:41
@anitarua anitarua merged commit 6809b6e into main Dec 17, 2025
11 checks passed
@anitarua anitarua deleted the global-api-keys branch December 17, 2025 01:03
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.

3 participants