Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle both upper and lowercase of apitokentype. #174

Merged
merged 1 commit into from
May 2, 2023

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented May 2, 2023

Unleash has suddenly started returning token type with uppercase. This PR makes us handle both UPPER and lower case for token type.

The real fix would be for Unleash to obey its own contract with lowercase for token types, but this fix makes us more tolerant to mistakes in Unleash code.

Unleash has suddenly started returning token type with uppercase.
This PR makes us handle both UPPER and lower case for token type.

The real fix would be for Unleash to obey its own contract with
lowercase for token types, but this fix makes us more tolerant to
mistakes in Unleash code.
Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well that's silly.

Nice catch! LGTM

@chriswk chriswk merged commit dfb1910 into main May 2, 2023
@chriswk chriswk deleted the fix/handleBothCasesOfApiTokenType branch May 2, 2023 09:31
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.

2 participants