refactor, feat: added proton auth support, added instruction for proton, added errors, some refactor and cleanup

This commit is contained in:
2025-08-08 17:21:54 +03:00
parent 52d053e024
commit eaf6aefd5b
12 changed files with 170 additions and 115 deletions

View File

@@ -98,11 +98,6 @@ AppSettingsPage({
try {
errorMessage = "";
let link = getTOTPByLink(changes);
if (link == null) {
throw new Error(
"Unsupported link type. Please use an otpauth:// or otpauth-migration:// link",
);
}
if (Array.isArray(link)) {
storage.push(...link);
@@ -121,6 +116,8 @@ AppSettingsPage({
alignItems: "center",
justifyContent: "center",
marginBottom: "10px",
marginLeft: "10px",
marginRight: "10px",
fontSize: "20px",
color: colors.text,
borderRadius: "5px",
@@ -138,7 +135,7 @@ AppSettingsPage({
},
errorMessage,
)
: null; //TODO: Check for work
: null;
const bottomContainer = View(
{