Skip to content

Commit

Permalink
Update cookieUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
00salmon committed Jun 11, 2024
1 parent 9d4d145 commit d6b16e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/cookieUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function b64decode(input) {
return new TextDecoder("utf8").decode(bytes);
}

// Suggestion from https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem
export function b64encode(input) {
const encodedInput = new TextEncoder().encode(input);

Expand Down

0 comments on commit d6b16e3

Please sign in to comment.