FirebaseAuthentication

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

FirebaseAuth lets you Secure your Firebase Database and Authenticate Users viaEmail, Phone, Google, Github, etc.



Methods

You can set the below method blocks in the blocks section of the builder.

CreatePhoneAuthCredential

Creates a Phone Auth Credential to SignIn With Phone

GetPhotoUrl

Get the PhotoUrl of the User. Only if a Picture is Uploaded

GetUserAuthToken

Get the UserAuthToken

GetUserEmail

Get the email of the User

GetUserName

Get the UserName of the User

GetUserPhoneNumber

Get the Phone Number of the User

GetUserUid

Get the UserId of the User. Useful for storing the data of the user

GoogleLogin

Method for GoogleLogin

InitializeFirebaseAuth

Initialize the Firebase Auth Component

IsUserSignedIn

Method for IsUserSignedIn

LinkWithGithub

Link a Github account with the user to enable them to login withGithub later. This will link Github with the existing account

LinkWithMicrosoft

Link a Microsoft account with the user to enable them to login withMicrosoft later. This will link Microsoft with the existing account

LinkWithTwitter

Link a twitter account with the user to enable them to login withtwitter later. This will link twitter with the existing account

LinkWithYahoo

Link a Yahoo account with the user to enable them to login withYahoo later. This will link Yahoo with the existing account

SendSMSVerification

Sends a Verification Code to the Users Phone Number. Input: phoneNumber and timeout. timeout should be in seconds and a new sms can be sent only after the specified time.

SignInAnonymously

Sign in Anonymously to Access Secured Functions without an Account

SignInWithEmail

SignIn with Email and Password using FirebaseAuth

SignInWithGithub

Sign in Using Github

SignInWithMicrosoft

Sign in Using Microsoft

SignInWithPhone

Sign In With Phone Number. Pass the Phone Auth Credentials received from the SMS verified Event.

SignInWithTwitter

Sign in Using Twitter

SignInWithYahoo

Sign in Using Yahoo

SignOut

SignOut a User

SignUpWithEmail

SignUp with Email and Password using FirebaseAuth

UnlinkGithub

Method for UnlinkGithub

UnlinkMicrosoft

Method for UnlinkMicrosoft

UnlinkTwitter

Method for UnlinkTwitter

UnlinkYahoo

Method for UnlinkYahoo


Events

You can set the below event blocks in the blocks section of the builder.

AnonymousSignInFailed

Anonymous Sign In Failed

AnonymousSignInSuccessful

Anonymous Sign In Successful

EmailSignInFailed

Event Called when Email SignIn is failed

EmailSignInSuccessful

Event Called when Email SignIn is Successful

EmailSignUpFailed

Event Called when Email SignUp is failed

EmailSignUpSuccessful

Event Called when Email SignUp is Successful

ErrorOccurred

Something went wrong in Firebase Auth

FailedToInitialize

Failed to Initialized Firebase Auth Component

GithubLinkFailed

Github Link Failed

GithubLinkSuccessful

Github Link Successful

GithubSignInFailed

Github Sign In Failed

GithubSignInSuccessful

Github Sign In Successful

GoogleSignInFailed

Event for GoogleSignInFailed

GoogleSignInSuccess

Event for GoogleSignInSuccess

MicrosoftLinkFailed

Microsoft Link Failed

MicrosoftLinkSuccessful

Microsoft Link Successful

MicrosoftSignInFailed

Microsoft Sign In Failed

MicrosoftSignInSuccessful

Microsoft Sign In Successful

PhoneSignInFailed

Phone Sign In Failed

PhoneSignInSuccessful

Phone Sign In Successful

SmsVerificationFailed

Verification Sms Failed to Sent

SmsVerified

Sms Verified

TwitterLinkFailed

Twitter Link Failed

TwitterLinkSuccessful

Twitter Link Successful

TwitterSignInFailed

Twitter Sign In Failed

TwitterSignInSuccessful

Twitter Sign In Successful

UserAuthTokenReceived

Event for UserAuthTokenReceived

VerificationSmsSent

Verification Sms Sent

VerificationSmsTimedOut

Verification Sms Timed Out

YahooLinkFailed

Yahoo Link Failed

YahooLinkSuccessful

Yahoo Link Successful

YahooSignInFailed

Yahoo Sign In Failed

YahooSignInSuccessful

Yahoo Sign In Successful