Skip to content

Commit

Permalink
fix(utils): use base64 for fromB64url util
Browse files Browse the repository at this point in the history
base64url is not defined in web environment polyfills - this should result in the same thing
  • Loading branch information
dtfiedler committed May 2, 2024
1 parent b858176 commit 42302ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { createHash } from 'crypto';

export function fromB64Url(input: string): Buffer {
return Buffer.from(input, 'base64url');
return Buffer.from(input, 'base64');
}

export function toB64Url(buffer: Buffer): string {
Expand Down

0 comments on commit 42302ef

Please sign in to comment.