MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / generateQrCodeUrl

Method generateQrCodeUrl

server/controllers/UserController.js:600–610  ·  view source on GitHub ↗
(email, secret)

Source from the content-addressed store, hash-verified

598 }
599
600 generateQrCodeUrl(email, secret) {
601 const totp = new TOTP({
602 secret,
603 issuer: "Chartbrew",
604 label: email,
605 digits: 6,
606 period: 30,
607 });
608
609 return totp.toString();
610 }
611
612 async setup2faApp(userId) {
613 const user = await this.findById(userId);

Callers 1

setup2faAppMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected