Compare commits

...

2 Commits

Author SHA1 Message Date
08b11a3d09 chore: updated readme 2025-07-24 04:16:21 +03:00
acc3218df6 fix: fixed digit parameter resolve 2025-07-24 04:13:19 +03:00
2 changed files with 44 additions and 44 deletions

View File

@ -6,7 +6,7 @@
### Features:
- Supports of otpauth links with parameters "issuer", "algorithm", "digits", "period"
- Addition/Edition/Deletion of TOTPs from mobile app
- Support of google migration links formated: ```otpauth-migration://offline?data=...```
- Support of google migration links formated: ```otpauth-migration://offline?data=...``` (At this stage with only 6 digits and only 30 seconds period)
### Guides:

View File

@ -31,7 +31,7 @@ function getByOtpauthScheme(link){
args[3].split(":")[0]?.split("?")[0]; //Returns client
let secret = args[3].split("secret=")[1]?.split("&")[0]; //Returns secret
let period = args[3].split("period=")[1]?.split("&")[0]; //Returns period
let digits = args[3].split("digits=")[1]?.split("&")[0]; //Returns digits
let digits = args[3].split("digit=")[1]?.split("&")[0]; //Returns digits
let algorithm = args[3].split("algorithm=")[1]?.split("&")[0]; //Returns algorithm
let offset = args[3].split("offset=")[1]?.split("&")[0] ?? 0; //Returns offset
@ -51,8 +51,8 @@ function getByOtpauthScheme(link){
secret,
issuer,
client,
digits,
period,
Number(digits),
Number(period),
Number(offset),
getHashType(algorithm)
);