authyo_plugin library
The AuthyoPlugin to make your app's password-less authentications smooth and easy
Use AuthyoService to initialize your API client, set clientId and clientSecret,
and perform sendOtp and verifyOtp calls.
Response is returned as AuthyoResult class.
Classes
- AuthyoError
- Base class for all API errors.
- AuthyoInitializationError
-
Represents an Plugin Initialization Error
Mostly faced when user has not initialized the AuthyoService before calling
sendOtporverifyOtp - AuthyoResult
- AuthyoService
- Singleton service to interact with Authyo APIs for sending and verifying OTPs.
- BadRequestError
- Represents a 400 BadRequest error.
- ForbiddenError
- Represents a 403 Forbidden error.
- InternalServerError
- Represents a 500 InternalServerError.
- NotFoundError
- Represents a 404 NotFound error.
- Represents a 503 ServiceUnavailable error.
- TimeoutError
- Represents a TimeoutError
- TooManyRequestsError
- Represents a 429 TooManyRequest error.
- Represents a 401 Unauthorized error.
- UnknownError
- Represents an Unknown error.
Enums
- AuthwayEnum
- Enum representing the available OTP delivery channels in Authyo.
Functions
-
handleHttpError(
int? statusCode, String message) → AuthyoError