FidoRegistrationCustomizer
Customizer for FIDO2 authentication requests.
This class provides customization hooks for both Google Play Services and Credential Manager authentication requests. It allows fine-tuning of request options before the authentication ceremony begins.
Usage in Authentication:
client.authenticate(options) {
onPublicKeyCredentialRequestOptions { options ->
// Customize Google Play Services request
options.toBuilder()
.setTimeoutSeconds(30.0)
.build()
}
onGetPublicKeyCredentialOption { option ->
// Customize Credential Manager request
GetPublicKeyCredentialOption(
option.requestJson,
preferImmediatelyAvailableCredentials = true
)
}
}Content copied to clipboard