From 5d58df8a193f6f455ebf9e1c76237a34c42139d3 Mon Sep 17 00:00:00 2001 From: Arnaud Rocher Date: Sat, 17 Jan 2026 19:38:48 +0100 Subject: [PATCH] fix: parity of Base64/URL encoding between frontend and backend (#611) Signed-off-by: Arnaud Rocher --- frontend/src/helpers/encoding.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/helpers/encoding.js b/frontend/src/helpers/encoding.js index 391c9e8..ca92e67 100644 --- a/frontend/src/helpers/encoding.js +++ b/frontend/src/helpers/encoding.js @@ -1,7 +1,7 @@ export function base64_url_encode(input) { let output = btoa(input) - output = output.replace('+', '.') - output = output.replace('/', '_') - output = output.replace('=', '-') + output = output.replaceAll('+', '.') + output = output.replaceAll('/', '_') + output = output.replaceAll('=', '-') return output } \ No newline at end of file