fix: added validation for links

This commit is contained in:
Savely Savianok
2025-02-09 20:54:10 +03:00
parent 589a9cb527
commit b4df58765d
2 changed files with 8 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ export function getTOTPByLink(link) {
getHashType(algorithm)
);
} catch (err) {
throw new Error("Link is not valid");
return null;
}
}