April 2020
Intermediate to advanced
380 pages
9h 24m
English
Now, we will create a Dart file, auth.dart. This file will act as a centralized point to access the authentication methods provided by the firebase_auth plugin:
import 'package:firebase_auth/firebase_auth.dart';
abstract class BaseAuth { Future<String> signIn(String email, String password); Future<String> signUp(String email, String password); Future<String> getCurrentUser(); Future<void> signOut();}
As the name of the methods suggests, we will be using four primary features of authentication:
Read now
Unlock full access