fix: added validation for links
This commit is contained in:
@@ -33,7 +33,7 @@ export function getTOTPByLink(link) {
|
||||
getHashType(algorithm)
|
||||
);
|
||||
} catch (err) {
|
||||
throw new Error("Link is not valid");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user