Compare commits
2 Commits
0aeeebfb3d
...
08b11a3d09
Author | SHA1 | Date | |
---|---|---|---|
08b11a3d09 | |||
acc3218df6 |
@ -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:
|
||||
|
||||
|
@ -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)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user