Function authy::api::user::verify [] [src]

pub fn verify(
    client: &Client,
    id: u32,
    token: &str
) -> Result<Status, AuthyError>

Verify an authentication token.

To verify a token simply pass in the token that the user entered and the authy id of the user (which should have stored in your database when you registered the user above). Authy will use HTTP status codes for the response.

To prevent user from being locked out, until the user successfully logs in once using Authy this call will return 200 (valid token). If you wish to verify token regardless, see below to see how to force verification. HTTP 200 means valid token and HTTP 401 means invalid token

Please see the Authy documentation for more details: https://www.twilio.com/docs/api/authy/authy-totp#verifying-a-token