feat: created logic for render totps

This commit is contained in:
Савелий Савенок
2024-11-09 18:22:00 +03:00
parent 40f6ae7f76
commit ab13957cb0
4 changed files with 87 additions and 26 deletions

View File

@@ -12,7 +12,9 @@ export class HOTP {
this.key = key;
this.digit = digit;
}
static encode(data){
return encode(data)
}
/**
* generate secret key
* @param {int} len