signIn
Signs in using the provided parameters if not already signed in. If no parameters are provided, the credentials will be prompted in runtime.
Notes:
- Requires the
apiIdandapiHashparameters to be passed when constructing the client. - Reconnects the client to the appropriate DC in case of MIGRATE_X errors.
Parameters
params?: SignInParams
Result
void
Syntax
// Without the optional parameter.
await client.signIn();
// With the optional parameter.
await client.signIn(params);