signupWithPasskey
About this command
The user requests to sign up with a passkey for the first time.
The WebAuthn feature must be enabled on your ReachFive account. |
Examples
client.signupWithPasskey(
ProfileWebAuthnSignupRequest(
givenName = "John",
familyName = "Doe",
email = "john.doe@gmail.com"
),
friendlyName = "Google Password Manager",
origin = "passkey signup from Android app",
success = { authToken -> ... }, // Get the profile's authentication token
failure = { error -> ... }, // Handle a ReachFive error
activity = activity,
)
Parameters
The Android activity. |
|||||||||||||||||||||||||||||||||||||||||
Callback called once the request has failed. You’ll get a |
|||||||||||||||||||||||||||||||||||||||||
The name associated to the passkey in ReachFive. Default to the name of the Android product. |
|||||||||||||||||||||||||||||||||||||||||
Free text parameter describing the source of the login (only for reporting purposes). |
|||||||||||||||||||||||||||||||||||||||||
The profile data.
|
|||||||||||||||||||||||||||||||||||||||||
List of space-delimited, case-sensitive strings representing the requested scope. Default scopes are the allowed scopes set up in the client’s configuration. |
|||||||||||||||||||||||||||||||||||||||||
Callback called once the request has succeeded. Takes |
Response
Type: Unit
ReachFiveError
message |
The message of the error. |
||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
||||||||||||||
code |
The HTTP status code or SDK error code. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|