diff --git a/src/util/Totp.js b/src/util/Totp.js index 17f185b..f569765 100644 --- a/src/util/Totp.js +++ b/src/util/Totp.js @@ -16,10 +16,10 @@ class TOTP { // eslint-disable-next-line valid-jsdoc /** * Generates a Time-based One-Time Password (TOTP) - * @async + * @public * @param {string} key - The secret key for TOTP * @param {generateOptions} options - Optional parameters for TOTP - * @returns {Promise<{ otp: string; expires: number }>} + * @returns {Promise<{ otp: string, expires: number }>} */ static async generate(key, options = {}) { const _options = { diff --git a/typings/index.d.ts b/typings/index.d.ts index 28dbc27..8b12ae1 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -782,7 +782,7 @@ export class Client extends BaseClient { public sleep(timeout: number): Promise; public login(token?: string): Promise; /** @deprecated This method will not be updated until I find the most convenient way to implement MFA. */ - public passLogin(email: string, password: string, mfaCode?: string | number): Promise; + public passLogin(email: string, password: string): Promise; public QRLogin(): Promise; public logout(): Promise; public isReady(): this is Client; @@ -3437,7 +3437,7 @@ export class TOTP { private static buf2hex(buf: ArrayBuffer): string; private static readonly base32: { [key: number]: number }; private static readonly crypto: SubtleCrypto; - static generate(key: string, options?: generateOptions): Promise<{ otp: string; expires: number}>; + public static generate(key: string, options?: generateOptions): Promise<{ otp: string; expires: number}>; } export type TOTPAlgorithm = "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512";