fix: final fix of parsing issuer and client

This commit is contained in:
Savely Savianok
2025-02-26 02:46:16 +03:00
parent ca342bf6e4
commit ccfd422061
3 changed files with 5 additions and 4 deletions

View File

@@ -24,8 +24,8 @@ export function getTOTPByLink(link) {
issuer = args[3].split("issuer=")[1]?.split("&")[0]
}
issuer = issuer.replace("%20", " ");
client = client.replace("%20", " ");
issuer = decodeURIComponent(issuer);
client = decodeURIComponent(client);
return new TOTP(
secret,
@@ -37,6 +37,7 @@ export function getTOTPByLink(link) {
getHashType(algorithm)
);
} catch (err) {
console.log(err)
return null;
}
}