Skip to content
/ auth2 Public

Super simple OTP (Time-based One-Time Password) app showcasing how to build a mobile app core in Rust.

License

Notifications You must be signed in to change notification settings

typester/auth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth2 - Simple 2FA app

Super simple OTP (Time-based One-Time Password) app showcasing how to build a mobile app core in Rust.

Android screenshot 1 Android screenshot 2 iOS screenshot 1 iOS screenshot 2

What is this?

This is a sample app demonstrating an architecture where the core of the mobile app is written in Rust, and the UI is implemented natively using Compose and SwiftUI.

For more details, please refer to the following blog entries:

How to build, etc.

  1. Setup environment by following "Setup environment" entry linked above.
  2. Follow the platform specific instruction listed below:

Android

cd ./core
./build-android-lib.sh

Once the build completes without errors, you should be able to open the =android= directory in Android Studio and run the app.

iOS

cd ./core
cargo lipo --release
cargo build --release --target aarch64-apple-ios-sim

Once this completes without errors, you should be able to open =ios/Auth2.xcodeproj= in Xcode and run the app.

Author

Daisuke Murase [email protected]

About

Super simple OTP (Time-based One-Time Password) app showcasing how to build a mobile app core in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published