Variable generateURIConst
generateURI: (
options: {
account: string;
algorithm?: "SHA1" | "SHA256" | "SHA512";
byteLength?: number;
digits?: 6 | 7 | 8;
issuer: string;
period?: number;
secret?: string;
},
) => { secret: string; uri: string } = ...
Type Declaration
- (
options: {
account: string;
algorithm?: "SHA1" | "SHA256" | "SHA512";
byteLength?: number;
digits?: 6 | 7 | 8;
issuer: string;
period?: number;
secret?: string;
},
): { secret: string; uri: string } Parameters
- options: {
account: string;
algorithm?: "SHA1" | "SHA256" | "SHA512";
byteLength?: number;
digits?: 6 | 7 | 8;
issuer: string;
period?: number;
secret?: string;
}
Returns { secret: string; uri: string }
Generates an otpauth URL that when opened launches any capable password manager that supports TOTP.