signInAnonymously method
Signs in the user anonymously and returns the user credential.
Implementation
Future<UserCredential> signInAnonymously() async {
try {
return await _auth.signInAnonymously();
} catch (err) {
if (err is FirebaseAuthException) {
throw AuthDataServiceException.fromRdevException(err.toRdevException());
} else {
throw AuthDataServiceException(
message: err.toString(),
);
}
}
}