Skip to content

Conversation

liuzs0666
Copy link

BLE is the standard enum value. Keeping bluetooth just for backward compatibility.

@Dopeamin Dopeamin self-assigned this Aug 14, 2025
Comment on lines +101 to +103
Bluetooth,
@JsonValue('ble')
BluetoothLowEnergy;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make more sense to have one enum :

It should still be backwards compatible as the entry point for users would be the factory function and the switch logic .

@JsonValue('bluetooth')
  Bluetooth;

factory AuthenticatorTransport.fromPlatformType(String value) {
switch (value) {
return AuthenticatorTransport.Nfc;
case 'bluetooth':
return AuthenticatorTransport.Bluetooth;
      case 'ble':
        return AuthenticatorTransport.Bluetooth;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants