AuthController class

This class contains static methods that help you access the Authentication methods effectively

Constructors

AuthController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getCurrentUser(BuildContext context, {dynamic customMapping(User?)?}) User?
An easy way to get the Currently Logged in User
logout(BuildContext context, {Function? onLogout}) → dynamic
Initiates a logout and the authManager redirects to the loginFragment
registerWithEmailAndPassword(BuildContext context, {required String email, required String password, dynamic onError(String)?, dynamic onRegisterSuccessful(User?)?}) Future<User?>
Registers the Email and Password Combination on Firebase initiates a login and the AuthManager changes the screen to the destinationFragment Call this to create a new User and instantly log them in
signInAnonymously(BuildContext context, {dynamic onSignInSuccessful(User?)?, dynamic onError(String)?}) Future<User?>
Initiates and Anonymous SignIn and the AuthManager changes the screen to the destinationFragment
signInWithApple(BuildContext context, {dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initiates a Apple OAuth SignUp Flow based on the OAuthEngine Implementation
signInWithEmailAndPassword(BuildContext context, {required String email, required String password, dynamic onError(String)?, Function? onIncorrectCredentials, dynamic onSignInSuccessful(User?)?}) Future<User?>
Initates a Mail & Password SignIn and the AuthManager changes the screen to the destinationFragment
signInWithFacebook(BuildContext context, {dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initiates a Facebook Native/Web SignUp Flow
signInWithGithub(BuildContext context, {dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initiates a Github OAuth SignUp Flow based on the OAuthEngine Implementation
signInWithGoogle(BuildContext context, {bool? signInWithRedirect, dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initates a GoogleSignIn and the AuthManager changes the screen to the destinationFragment
signInWithMicrosoft(BuildContext context, {dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initiates a Microsoft OAuth SignUp Flow based on the OAuthEngine Implementation
signInWithPhoneNumber(BuildContext context, {String? phoneNumber, dynamic onError(String)?, Function? onInvalidVerificationCode, dynamic onSignInSuccessful(User?)?, bool closeVerificationPopupAfterSubmit = false}) Future<User?>
Initiates a PhoneNumber SignIn, brings up an OTPVerificationModal and then the AuthManager changes the screen to the destinationFragment
signInWithTwiter(BuildContext context, {dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initiates a Twitter OAuth SignUp Flow based on the OAuthEngine Implementation
signInWithYahoo(BuildContext context, {dynamic onError(String)?, dynamic onSignInSuccessful(User)?}) Future<User?>
Initiates a Yahoo OAuth SignUp Flow based on the OAuthEngine Implementation