Hi Dewald,
I wouldn't recommend storing the user's username and password, even i n the React Native Keychain.
A better approach is:
This is the approach commonly used in production applications, as it avoids storing the user's actual password while still providing a seamless biometric login experience.
If you're using Studio Pro 11.12, this can be implemented using a custom React Native module/JS action together with the Keychain APIs.
Another approach is to avoid storing the username and password altogether.
For anonymous users, show the normal login page initially. After the user logs in successfully for the first time, call a nanoflow that enables biometric authentication.
You can use the Is Biometric Authentication Supported activity to check whether the device supports biometrics. If it does, call the Biometric Authentication activity. If the authentication succeeds, navigate directly to the landing page. Otherwise, show a toast message indicating that biometric authentication is not available (or failed) and redirect the user back to the login page.
With this approach, there is no need to store the user's username or password, reducing the risk of exposing sensitive credentials.
Kindly mark this as the accepted answer if it helps.