ReCaptchaResult

public enum ReCaptchaResult

The ReCaptcha result.

This may contain the validation token on success, or an error that may have occurred.

  • The validation token.

    Declaration

    Swift

    case token(String)
  • An error that may have occurred.

    Declaration

    Swift

    case error(ReCaptchaError)
  • Tries to unwrap the Result and retrieve the token if it’s successful.

    Declaration

    Swift

    public func dematerialize() throws -> String

    Return Value

    The validation token uppon success.