my_otp_way 0.1.0 copy "my_otp_way: ^0.1.0" to clipboard
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.
  • MyOtpWay client for the send, resend and verify proxy routes.
  • OtpSession, a ChangeNotifier owning 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.
  • MyOtpBuilder for wiring a session into a widget tree.
  • A sealed MyOtpException with one variant per proxy error code, plus NetworkFailure for a request that never left the device. An unrecognised code, or a body with no error key at all, degrades to ServiceUnavailable rather than throwing.
0
likes
160
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Send and verify OTP codes through your own backend, without shipping an API key inside your app.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

clock, flutter, http

More

Packages that depend on my_otp_way