FidoNonDiscoverableActivity
Transparent activity for handling Google Play Services FIDO2 authentication flow.
This activity provides a headless interface for launching FIDO2 authentication prompts using the Google Play Services FIDO2 API. It manages the PendingIntent lifecycle and provides thread-safe result handling for concurrent FIDO2 operations.
Usage Pattern:
Created automatically by
getPublicKeyCredential()functionReceives PendingIntent from Google Play Services FIDO2 API
Launches authentication prompt and handles user interaction
Returns result to the suspended coroutine
Self-terminates after completing the operation
Thread Safety:
Uses atomic operations and mutex for concurrent operation prevention
Ensures only one FIDO2 operation can be active at a time
Properly handles cancellation and cleanup