my_otp_way 0.1.0
my_otp_way: ^0.1.0 copied to clipboard
Send and verify OTP codes through your own backend, without shipping an API key inside your app.
0.1.0 #
- First release.
MyOtpWayclient for thesend,resendandverifyproxy routes.OtpSession, aChangeNotifierowning the expiry countdown, the resend cooldown and the attempts counter. It refuses a resend — and a repeated send — locally while the cooldown runs, so a hammered button never reaches the network.MyOtpBuilderfor wiring a session into a widget tree.- A sealed
MyOtpExceptionwith one variant per proxy error code, plusNetworkFailurefor a request that never left the device. An unrecognised code, or a body with noerrorkey at all, degrades toServiceUnavailablerather than throwing.