Twitter LogoFacebook Logo
Auth - Create Account with Email and Password
Using the "Create Account with Email and Password" node to create user accounts using an email and password.
By: King

Hello, in this tutorial, I’ll show you how to use the “Create Account With Email and Password” node in the FBP Firebase Plugin to create user accounts in Firebase.

Image from Codeible.com

The node has 4 pins:


1 for the email
1 for the password
2 for the callback functions that’ll determine if the operation was successful or not

For the Email pin, enter the email for the account, then set the password for the account in the Password pin.

Add the callbacks

To create the callbacks, click and hold on the callback pin from the node. Then drag and let go on an empty spot on the blueprint.

Select “Add Event” then “Add Custom Event.” 

Image from Codeible.com

The On Success callback returns a Firebase User object that contains some metadata about the account when it is created.

Right click on the pin and select “Split Struct Pin” to reveal the metadata.

Image from Codeible.com

The On Fail callback will get called when it failed to create the account. It’ll give us an error message that we can use identify the issue that occurred.

Image from Codeible.com

Sign In