login method

Future<AuthSuccess> login(
  1. Session session, {
  2. required String idToken,
})

Validates a Firebase ID token and either logs in the associated user or creates a new user account if the Firebase account ID is not yet known.

If a new user is created an associated UserProfile is also created.

Implementation

Future<AuthSuccess> login(
  final Session session, {
  required final String idToken,
}) async {
  return firebaseIdp.login(
    session,
    idToken: idToken,
  );
}