Skip to content

Commit 1cf2b24

Browse files
committed
MacOS is supported
1 parent 9fc2ab3 commit 1cf2b24

File tree

1 file changed

+2
-4
lines changed
  • packages/firebase_auth/firebase_auth/lib/src

1 file changed

+2
-4
lines changed

packages/firebase_auth/firebase_auth/lib/src/user.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,9 @@ class User {
673673
}
674674

675675
MultiFactor get multiFactor {
676-
if (!kIsWeb &&
677-
(defaultTargetPlatform == TargetPlatform.macOS ||
678-
defaultTargetPlatform == TargetPlatform.windows)) {
676+
if (!kIsWeb && (defaultTargetPlatform == TargetPlatform.windows)) {
679677
throw UnimplementedError(
680-
'MultiFactor Authentication is only supported on web, Android and iOS.',
678+
'MultiFactor Authentication is only supported on web, Android, iOS and macOS.',
681679
);
682680
}
683681
return _multiFactor ??= MultiFactor._(_delegate.multiFactor);

0 commit comments

Comments
 (0)