mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
#453 adapted encoding to new library requirements
This commit is contained in:
parent
cbcb35aba4
commit
1bf03b53e0
1 changed files with 4 additions and 1 deletions
|
@ -2072,7 +2072,10 @@ window.lam.webauthn.authenticate = function(publicKey) {
|
|||
* @returns base64 string
|
||||
*/
|
||||
window.lam.webauthn.arrayToBase64String = function(input) {
|
||||
return btoa(String.fromCharCode.apply(null, input)).replaceAll("=", "");
|
||||
return btoa(String.fromCharCode(...input))
|
||||
.replaceAll("=", "")
|
||||
.replaceAll("+", "-")
|
||||
.replaceAll("/", "_");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue