File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import { generateSecret } from "2fa-node";
3232const payload = {
3333 name: " MyApp" , // Application name
3434 account: " user@example.com" , // User account (email or username)
35+ numberOfSecretBytes: 20 // OPTIONAL
3536};
3637
3738const secret = await generateSecret (payload );
Original file line number Diff line number Diff line change 4040 "license" : " MIT" ,
4141 "description" : " Easy 2-Factor Integration For Node.js" ,
4242 "devDependencies" : {
43- "@eslint/js" : " ^9.17 .0" ,
43+ "@eslint/js" : " ^9.18 .0" ,
4444 "@japa/assert" : " ^4.0.1" ,
4545 "@japa/expect" : " ^3.0.3" ,
4646 "@japa/expect-type" : " ^2.0.3" ,
4747 "@japa/runner" : " ^4.1.0" ,
48- "@types/node" : " ^22.10.5 " ,
48+ "@types/node" : " ^22.10.7 " ,
4949 "@types/qrcode" : " ^1.5.5" ,
50- "eslint" : " ^9.17 .0" ,
50+ "eslint" : " ^9.18 .0" ,
5151 "globals" : " ^15.14.0" ,
5252 "prettier" : " ^3.4.2" ,
5353 "rimraf" : " ^6.0.1" ,
5454 "ts-node" : " ^10.9.2" ,
5555 "tsx" : " ^4.19.2" ,
5656 "typescript" : " ^5.7.3" ,
57- "typescript-eslint" : " ^8.19.1 "
57+ "typescript-eslint" : " ^8.21.0 "
5858 },
5959 "type" : " module" ,
6060 "dependencies" : {
You can’t perform that action at this time.
0 commit comments