
Mifos-Passcode-CMP is a secure and flexible passcode management library built using Kotlin Multiplatform and Jetpack Compose Multiplatform (CMP). It enables developers to easily integrate passcode-based authentication along with biometric authentication (such as fingerprint or face recognition) into cross-platform applications using a shared codebase.
Designed with modularity and security in mind, this library is a foundational part of the Mifos mobile ecosystem and is suitable for any Kotlin Multiplatform project where secure access control is required.
Platform | Support Status |
---|---|
Android | ✅ Supported |
iOS | ✅ Supported |
macOS | ✅ Supported |
Windows 10+ | ✅ Supported |
Linux | ✅ Supported |
Web | ✅ Supported |
Core library module containing shared and platform-specific implementations:
commonMain/
- Platform-agnostic passcode and biometric logic (ViewModels, shared logic).
<platform>Main/
– Platform-specific implementations for biometric authentication via native interop:androidMain/
iosMain/
macosMain/
windowsMain/
linuxMain/
webMain/
Cross-platform sample implementation of the passcode screen UI:
commonMain/
– Shared passcode screen logic using Compose Multiplatform.<platform>Main/
– Platform-specific UI wiring for the passcode screen.
- Import
PasscodeScreen
to your project which has 4 parameters mentioned below:onForgotButton
: This will allow to handle the case when the user isn't able to log into the app. In our project we are redirecting the user to login pageonSkipButton
: This offers users the flexibility to bypass the passcode setup process, granting them immediate access to the desired screenonPasscodeConfirm
: This allows you to pass a function that accepts a string parameteronPasscodeRejected
: This can be used to handle the event when user has entered a wrong passcode
![]() |
![]() |
![]() |


