Skip to content

Commit

Permalink
Changed base64 encode implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
karelklima committed Sep 18, 2022
1 parent 5f4ca28 commit 459dec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendata-mvcr/assembly-line-shared",
"version": "0.3.1",
"version": "0.3.2",
"description": "Common front end components for Assembly Line",
"homepage": "https://github.com/opendata-mvcr/assembly-line-shared#readme",
"author": "KODI Team",
Expand Down
2 changes: 1 addition & 1 deletion src/auth/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getEnvInstance } from "env";
* Base64 encoding helper
*/
const encodeBase64 = (uri: string) => {
return Buffer.from(uri).toString("base64");
return btoa(uri);
};

/**
Expand Down

0 comments on commit 459dec4

Please sign in to comment.