loginWithGoogle method

ResultOrError<UserModel> loginWithGoogle(
  1. String uid
)

Implementation

ResultOrError<UserModel> loginWithGoogle(String uid) async {
  final response = await _auth.loginWithGoogle(uid);
  return response.fold(
    Left.new,
    (r) {
      token.bearer = r.token;
      user = r;
      return Right.new(r);
    },
  );
}