Passkey
The Kotlin Android Passkey module ensures secure and streamlined user authentication and registration using modern passkey technology. It provides a set of methods to verify a user’s existence, authenticate users, and register new users.
1. isUserExist
The isUserExist() method checks whether a user with the provided username already exists in the system. It returns a Flow emitting a Boolean value indicating the existence status.
Example:
2. authenticate
The authenticate() method initiates the passkey authentication process for a user. It accepts the username and the activity context to start the authentication flow. The method returns a Flow that emits an AuthVerifyResponse containing details of the authentication result.
Example:
3. register
The register() method starts the passkey-based registration process for a new user. It takes the username and the activity context, then returns a Flow emitting a RegisterVerifyResponse with the registration details.
Example:
Last updated