diff --git a/packages/celest_core/lib/src/auth/passkeys/passkey_exception.dart b/packages/celest_core/lib/src/auth/passkeys/passkey_exception.dart index afc4a8be..2383cd40 100644 --- a/packages/celest_core/lib/src/auth/passkeys/passkey_exception.dart +++ b/packages/celest_core/lib/src/auth/passkeys/passkey_exception.dart @@ -1,37 +1,3 @@ import 'package:celest_core/celest_core.dart'; -// TODO(dnys1): Make sealed -final class PasskeyException implements AuthException { - const PasskeyException({ - required this.message, - }); - - @override - final String message; - - @override - String toString() => 'PasskeyException: $message'; -} - -final class PasskeyCancellationException extends PasskeyException { - const PasskeyCancellationException() - : super(message: 'Passkey registration was canceled by the user'); -} - -final class PasskeyUnknownException extends PasskeyException { - const PasskeyUnknownException([String? message]) - : super( - message: message ?? - 'An unknown error occurred during passkey registration', - ); -} - -final class PasskeyUnsupportedException extends PasskeyException { - const PasskeyUnsupportedException() - : super(message: 'Passkeys are not supported on this platform'); -} - -final class PasskeyFailedException extends PasskeyException { - const PasskeyFailedException([String? message]) - : super(message: message ?? 'Passkey registration failed'); -} +abstract interface class PasskeyException implements AuthException {}