fix: parity of Base64/URL encoding between frontend and backend (#611)

Signed-off-by: Arnaud Rocher <arnaud.roche3@gmail.com>
(cherry picked from commit 5d58df8a19)
This commit is contained in:
Arnaud Rocher 2026-01-17 19:38:48 +01:00 committed by Christoph Haas
parent eb28492539
commit 6e47d8c3e9
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -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
}