FirebaseAuthFacade class

Implemented types

Constructors

FirebaseAuthFacade(FirebaseAuth _firebaseAuth, GoogleSignIn _googleSignIn)

Properties

appleClientId ↔ String
Only for ios auth on Android
getter/setter pair
callbackUrl ↔ String
can be found in signin method of firebase, it's required because it's needed for appleSignin
getter/setter pair
githubClientId ↔ String
This is the clientID in GitHub OAuth app
getter/setter pair
githubloginStreamController ↔ StreamController<Either<AuthFailure, Unit>>?
getter/setter pair
githubSecret ↔ String
The secret generated in the github OAuth apps
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call({required dynamic callbackUrl, dynamic githubClientId = '', dynamic githubSecret = '', dynamic appleClientId = ''}) → void
getSignedInUser() → User?
get the current signed in user, return null if unauthenticated
override
isAnonymous() → bool
Checking if user is anonym or not
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerWithEmailAndPassword({required String email, required String password}) → Future<Either<AuthFailure, Unit>>
Register with Email and password return Future<Either<AuthFailure, Unit>>
override
resetPassword({required String email}) → Future<void>
Send an email to reset the password
override
signedOut() → Future<void>
Login out
override
signInWithAnon() → Future<Either<AuthFailure, Unit>>
Sign in as anonymous return Future<Either<AuthFailure, Unit>>
override
signInWithApple() → Future<Either<AuthFailure, Unit>>
Sign in with Apple return Future<Either<AuthFailure, Unit>>
override
signInWithEmailAndPassword({required String email, required String password}) → Future<Either<AuthFailure, Unit>>
Sign in with user and password return Future<Either<AuthFailure, Unit>>
override
signInWithGitHub() → Future<Either<AuthFailure, Unit>>
Sign in with GitHub return Future<Either<AuthFailure, Unit>>
override
signInWithGoogle() → Future<Either<AuthFailure, Unit>>
Sign in with google return Future<Either<AuthFailure, Unit>>
override
toString() → String
A string representation of this object.
inherited
userState() → Stream<User?>
/ Stream of the user current state
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited