Example of Ionic React 2 factor authentication (2FA) UI
Demo: https://ionic-react-2fa.netlify.app
This is a good example of a custom UI for 2FA
- Custom inputs
- Custom buttons
- Custom CSS animations for error/success
- Custom inputs controlled by state variables
The "success" code is hardcoded into the app.
In a real scenario, you could fetch the code from a server or send a request to check the code against etc.
npm install
then ionic serve
Alternatively add the iOS/Android platform through capacitor and run natively.
Are you on Twitter? Let's connect! @93alan
If you'd like to support, you can buy me a coffee ☕️