Skip to content

Fix base64 encoding character replacements#2694

Merged
jerome-ng merged 2 commits into
developfrom
jerome-ng/fix-cli-base64UrlEncode
Jun 18, 2026
Merged

Fix base64 encoding character replacements#2694
jerome-ng merged 2 commits into
developfrom
jerome-ng/fix-cli-base64UrlEncode

Conversation

@jerome-ng

Copy link
Copy Markdown
Collaborator

Signed-off-by: Jerome <107386741+jerome-ng@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the URL-safe Base64 character mapping in the CLI’s base64UrlEncode helper, aligning it with the standard Base64url encoding rules (RFC 4648 / MDN reference) so generated tokens (e.g., JWT parts) use the correct URL-safe alphabet.

Changes:

  • Corrected Base64url replacements to map +- and /_ in base64UrlEncode.

@jerome-ng jerome-ng enabled auto-merge June 18, 2026 04:24
@jerome-ng jerome-ng added this pull request to the merge queue Jun 18, 2026
Merged via the queue into develop with commit c07a1ff Jun 18, 2026
46 of 47 checks passed
@jerome-ng jerome-ng deleted the jerome-ng/fix-cli-base64UrlEncode branch June 18, 2026 06:45
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