Skip to content

Commit

Permalink
feat(auth, web): add phone mfa
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Jul 4, 2022
1 parent cd00a8c commit 8acc727
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
// found in the LICENSE file.

import 'package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart';
import 'package:firebase_core_web/firebase_core_web_interop.dart'
as core_interop;

import 'interop/auth.dart' as auth_interop;

/// Web delegate implementation of [UserPlatform].
class MultiFactorWeb extends MultiFactorPlatform {
MultiFactorWeb(FirebaseAuthPlatform auth) : super(auth);

/// instance of Auth from the web plugin
auth_interop.Auth? _webAuth;

auth_interop.Auth get _delegate {
return _webAuth ??=
auth_interop.getAuthInstance(core_interop.app(auth.app.name));
}
}

0 comments on commit 8acc727

Please sign in to comment.