requestAuthToken

requestAuthToken is a method on the faucet object that requests an authentication token using a captcha response. This token can then be used to claim tokens without needing to solve another captcha.

requestAuthToken does not require authentication.

Examples

requestAuthToken

const result = await ario.faucet.requestAuthToken({
    captchaResponse: 'captcha_response_token_here'
});

Parameters

ParameterTypeDescriptionOptional
captchaResponsestring

The captcha response from solving the captcha challenge

false

Output

{
  "status": "success",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresAt": 1640995200000
}

Was this page helpful?