api.requestQrCodeAuthentication()
Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
Parameters
RequestQrCodeAuthenticationParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
otherUserIds | number[] | List of user identifiers of other users currently using the application |
Returns
ApiResponse interface:interface ApiResponse {
_: 'requestQrCodeAuthentication' | 'error'
airgram: Airgram
request: {
method: 'requestQrCodeAuthentication'
params: RequestQrCodeAuthenticationParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}