Skip to content
Snippets Groups Projects
Commit 3c092235 authored by ale's avatar ale
Browse files

Switch JS code to url-safe base64-encoding

parent c5d52202
No related branches found
No related tags found
No related merge requests found
Pipeline #73912 passed
......@@ -13,7 +13,7 @@ function bufferEncode(value) {
}
function bufferDecode(value) {
return Uint8Array.from(atob(value), c => c.charCodeAt(0));
return Uint8Array.from(atob(value.replace(/-/g, '+').replace(/_/g, '/')), c => c.charCodeAt(0));
}
function verifyAssertion(url, assertedCredential) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment