The goal of this block is to verify a passkey during the login process. The corresponding screen will be shown when a user has a passkey available and needs to verify it.

Available block data

Stores passkey verification details like primaryLoading.

Available block methods

  • verifyPasskey() async: Verifies the passkey for authentication.

Implementation Steps

1

Create Passkey Verify Screen

Create a new screen that implements the PasskeyVerifyBlock interface. This screen will handle the passkey verification process.

lib/screens/passkey_verify.dart
class PasskeyVerifyScreen extends HookWidget implements CorbadoScreen<PasskeyVerifyBlock> {
  final PasskeyVerifyBlock block;
  
  PasskeyVerifyScreen(this.block);
2

Add Verification Button

Implement a button to trigger the passkey verification process.

FilledTextButton(
  isLoading: block.data.primaryLoading,
  onTap: block.verifyPasskey,
  content: 'Verify with Passkey',
),
For a complete implementation example, see the PasskeyVerifyScreen implementation on GitHub.