Compare commits

..

No commits in common. "08b11a3d09181593816c84734be40499693cf670" and "0aeeebfb3d812a82b124c071ce7ad4901812f609" have entirely different histories.

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=...``` (At this stage with only 6 digits and only 30 seconds period)
- Support of google migration links formated: ```otpauth-migration://offline?data=...```
### 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("digit=")[1]?.split("&")[0]; //Returns digits
let digits = args[3].split("digits=")[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,
Number(digits),
Number(period),
digits,
period,
Number(offset),
getHashType(algorithm)
);