auth.initPasskeyLogin
Initialize login with a passkey over an unauthenticated connection, see here » for more info.
func (c *Client) AuthInitPasskeyLogin(ctx context.Context, request *AuthInitPasskeyLoginRequest) (*AuthPasskeyLoginOptions, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AuthInitPasskeyLogin(ctx, &tg.AuthInitPasskeyLoginRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *AuthPasskeyLoginOptions
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
APIID | int | yes | Application identifier (see App configuration) |
APIHash | string | yes | Application identifier hash (see App configuration) |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | API_ID_INVALID | API ID invalid. |
| 500 | AUTH_RESTART | Restart the authorization process. |
| 500 | PASSKEY_AUTH_RESTART |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.initPasskeyLogin#518ad0b7