authyo_plugin 1.1.0
authyo_plugin: ^1.1.0 copied to clipboard
Add secure, multi-channel MFA (SMS, WhatsApp, Email, Call) to your Flutter app with Authyo. Fast, simple, and flexible.
1.1.0 - 2026-09-12 #
Added #
- Seven selectable design styles for the built-in dialog: Flat (default), Flat 2.0, Minimalism, Skeuomorphism, Claymorphism, Glassmorphism, Neumorphism (
AuthyoDesignStyle). AuthyoTheme— colours, texts, logo, button shape, layout and resend timer, mirroring the dashboard customization; mergeable so dashboard values and local overrides layer cleanly.- Remote configuration: the SDK fetches the dashboard's design style, customization, enabled channels and social logins (
AuthyoService.loadConfig()), caches them on device and refreshes in the background. The OTP flow never blocks on it. - Social login (Google, Microsoft, GitHub, LinkedIn) inside the dialog and via
AuthyoService.socialLogin(), using the system browser and theauthyo://oauth/callbackscheme.onSocialLoginlets host apps plug in native SDKs. init()options:designStyle,theme,onSocialLogin,prefetchConfig;sendOtp()options:designStyle,theme.requestOtp()(send without UI),showVerificationDialog(),setDesignStyle(),setTheme(),setShowVerificationDialog().- The dialog follows the web widget's OTP flow step for step: top-left back button, "OTP sent to: … Change", one box per digit with auto-advance / paste / auto-verify on the last digit (no Verify button),
OTP will expire in m:ssfrom the server'sexpireTime, red expiry notice with Resend / Sms · Whatsapp · VoiceCall buttons for the channels enabled on the dashboard, resend passes the dashboard timer as the new expiry, social logins as an icon row underOR, an in-card "Verified successfully" badge before closing, Terms & Privacy footer, andisOtpHide. AuthyoStylegaineddecorateInput,otpBox,backButton,sentToRow,statusText,verifiedBadge(styles decorate the digit boxes the same way as the single field);AuthyoVerifiedBadgewidget.PhoneVerificationDialoggainedverifiedDisplayDurationand a test-onlyserviceseam (AuthyoService.forTesting).- "Remember me" (dashboard option): the dialog shows the checkbox only when enabled; ticking it sends
rememberMeon verify (longer session token) and keeps the identity on device —AuthyoService.rememberedIdentity()/forgetIdentity();verifyOtp(rememberMe:). When the option is off nothing is shown, sent or stored. Usermodel gainsemail,identity,displayName,channel.
Changed #
- Dialog logic extracted into
VerificationController; rendering is delegated to anAuthyoStyleper design. sendOtpforAuthwayEnum.emailnow sends"Email"asauthway(previously the enum'stoString()).- Example app gained a design-style picker and a built-in-dialog toggle.
Dependencies #
shared_preferences,flutter_web_auth_2,url_launcher(Terms / Privacy links).
1.0.3 - 2025-08-18 #
Improved #
- Clear and helpful error message now shown when
AuthyoService.init()is called withoutclientIdorclientSecret. - The message includes a link to the Authyo dashboard, making it easier for developers to obtain their credentials quickly.
1.0.2 - 2025-08-18 #
- Code formatting and LICENSE modified.
1.0.1 - 2025-08-14 #
- Inline comments to clarify core logic in the
sendOtpandverifyOtpmethods. - Basic input validation messages for phone number and email.
- Scoped
ScaffoldMessenger.of(context)to variables beforeawaitcalls to follow best practices. - Renamed internal variable references for clarity and consistency.
1.0.0 - 2025-08-13 #
- Initial release of the
authyo_plugin. - Supports password-less authentication using:
- SMS
- Voice Call
- Provides
sendOtpandverifyOtpmethods for OTP-based verification. - Built-in customizable verification dialog.