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

Improve UX around verification keys #120

Merged
merged 2 commits into from
Mar 10, 2024
Merged

Improve UX around verification keys #120

merged 2 commits into from
Mar 10, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Mar 10, 2024

Verification keys can now be provided in either PEM format, or as a base64-encoded string.

This fixes #115.

@chriso chriso self-assigned this Mar 10, 2024
Comment on lines +143 to +146
# Be forgiving when accepting keys in PEM format, which may span
# multiple lines. Users attempting to pass a PEM key via an environment
# variable may accidentally include literal "\n" bytes rather than a
# newline char (0xA).
Copy link
Contributor

Choose a reason for hiding this comment

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

Good thinking on this one 👍

@chriso chriso merged commit 49a1c2f into main Mar 10, 2024
3 checks passed
@chriso chriso deleted the verification-key-str branch March 10, 2024 22:44
@achille-roussel achille-roussel added the enhancement New feature or request label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error reporting when the verification key is invalid
2 participants