otpauth icon indicating copy to clipboard operation
otpauth copied to clipboard

Adding image to the totp object

Open MHF0 opened this issue 2 months ago • 0 comments

I am trying to integrate our company's logo into the OTPAuth TOTP object for better branding and visual identification. Currently, the object is initialized as follows:

const totp = new OTPAuth.TOTP({
   issuer: "Company name",
   label: "label",
   algorithm: "SHA1",
   digits: 6,
   period: 30,
   secret: OTPAuth.Secret.fromBase32(secret),
});

I would like to know the process or method to include our company logo alongside the issuer name in the TOTP object. Any guidance or suggestions on achieving this would be greatly appreciated. Thank you!

MHF0 avatar Apr 25 '24 07:04 MHF0