Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/client/mod.ts>UserAuthParams

MTProto API Client for Deno 🦕
Go to Latest
interface UserAuthParams
Re-export
import { type UserAuthParams } from "https://deno.land/x/grm@0.5.1/src/client/mod.ts";

Properties

phoneNumber: string | (() => MaybePromise<string>)
phoneCode: (isCodeViaApp?: boolean) => MaybePromise<string>
optional
password: (hint?: string) => MaybePromise<string>
optional
firstAndLastNames: () => Promise<[string, string]>
optional
qrCode: (qrCode: { token: Buffer; expires: number; }) => Promise<void>
onError: (err: Error) => Promise<boolean> | void
optional
forceSMS: boolean