api.checkAuthenticationCode()
Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode
Parameters
CheckAuthenticationCodeParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
code | string | Authentication code to check |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'checkAuthenticationCode' | 'error'
airgram: Airgram
request: {
method: 'checkAuthenticationCode'
params: CheckAuthenticationCodeParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}