teleproto - v1.229.0
    Preparing search index...

    Interface UserPasswordAuthParams

    interface UserPasswordAuthParams {
        onError: (err: Error) => void | Promise<boolean>;
        password?: (hint?: string) => Promise<string>;
    }

    Hierarchy (View Summary)

    Index
    onError: (err: Error) => void | Promise<boolean>

    when an error happens during auth this function will be called with the error.
    if this returns true the auth operation will stop.

    password?: (hint?: string) => Promise<string>

    optional string or callback that should return the 2FA password if present.
    the password hint will be sent in the hint param