signupWithWebAuthn
About this command
The user requests to register a new account for the first time. This method retrieves a FIDO2 pending intent for signup with the options returned by the ReachFive server and launches it.
The result is then processed by the onLoginActivityResult method.
| The WebAuthn feature must be enabled on your ReachFive account. |
Examples
private lateinit var webAuthnId: String
client.signupWithWebAuthn(
profile = ProfileWebAuthnSignupRequest(
givenName = "John",
familyName = "Doe",
gender = "male",
email = "john.doe@gmail.com"
),
origin = "https://dev-sandbox-268508.web.app",
friendlyName = "Nexus 5"
success = { _ -> ... }, // Initial call success
failure = { error -> ... }, // Handle a ReachFive error
activity = activity
)
Parameters
The profile data.
|
|||||||||||||||||||||||||||||||||||||||||
The domain of the origin. |
|||||||||||||||||||||||||||||||||||||||||
The name associated to the passkey in ReachFive. Default to the name of the Android product. |
|||||||||||||||||||||||||||||||||||||||||
Callback called once the request has succeeded. |
|||||||||||||||||||||||||||||||||||||||||
Callback called once the request has failed. You’ll get a |
|||||||||||||||||||||||||||||||||||||||||
The Android activity. |
Response
Type: Unit
ReachFiveError
message |
The message of the error. |
||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
||||||||||||||
code |
The code from the underlying WebAuthn library. See WebAuthn errors for more details. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|