From 459dec4aa0d928d9845fd8dc47333c65d60add8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kl=C3=ADma?= Date: Sun, 18 Sep 2022 15:35:27 +0200 Subject: [PATCH] Changed base64 encode implementation --- package.json | 2 +- src/auth/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cab03fc..f0f70f7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/auth/config.ts b/src/auth/config.ts index 953d71d..c632446 100644 --- a/src/auth/config.ts +++ b/src/auth/config.ts @@ -4,7 +4,7 @@ import { getEnvInstance } from "env"; * Base64 encoding helper */ const encodeBase64 = (uri: string) => { - return Buffer.from(uri).toString("base64"); + return btoa(uri); }; /**