Airgram

Guides
/
/
Methods

api.checkAuthenticationCode()

Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode

Parameters CheckAuthenticationCodeParams:

NameTypeDescription
codestring 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>
}