Firebase Auth, Firestore & Storage (plugin)
  • 🚀Getting Started
  • Setup
    • Create a Firebase Project
    • Get Firebase access credentials
    • Offline Support
    • Secure your credentials and data
      • Restrict your api-key to your domain
      • Security Rules on Firebase
  • Plugin Elements
    • 🛠️About elements
    • 💾Data Schemas
    • Firebase Auth (Current User)
    • Firestore Data List
      • Firebase Geohash
      • Firestore Data (legacy)
    • Firestore Data Extractor
    • Firestore Data Single
    • Firestore Data Aggregation
    • Firestore Data Processor
    • Firebase Storage Upload Button
    • Firebase Action Listener
    • Firebase Dropdown Processor
  • Plugin Front-end Actions
    • 💻About front-end actions
    • 💾Field types table
    • Firestore
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
      • Batch Operations
        • Batch Operation Constructor
        • Batch Operation Commit
    • Firebase Auth
      • Sign the User Up
      • Log the User In
      • Log the User In with Google
      • Log the User In with Facebook
      • Log the User In with GitHub
      • Log the User Out
      • Update User's Profile
      • Update User's Password
      • Update User's Email
      • Send password reset email
        • Handle reset password code
      • Send verification email
        • Handle verify email code
      • Delete current user
    • Firebase Storage
      • Upload file base64
      • Delete uploaded file
  • Plugin Back-end Actions
    • ☁️About backend actions
    • Firestore Backend
      • Get a list of documents
      • Get a single document
      • Count a list of documents
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
    • Firebase Auth Backend
      • Create an account for someone else
      • Update another user's profile info
      • Delete a user account
      • Generate email confirmation link
      • Generate password reset link
      • Set user roles
Powered by GitBook
On this page
  • Inputs and Settings
  • Email
  • Password
  • Password Confirmation
  • Trigger ID (optional)
  • Profile and Other User Data
  • Copy profile data into Firestore collection
  • Display Name
  • Photo URL
  • Phone Number (E.164 format)
  • Users Collection
  • Fields
  • Field Types
  • Triggered events
  • Stored values on the listener
  • User ID
  • User Email
  • Error Message
  1. Plugin Front-end Actions
  2. Firebase Auth

Sign the User Up

PreviousFirebase AuthNextLog the User In

Last updated 11 months ago

This action creates a new user account on Firebase Authentication, with email/password authentication, as well as a new Document on Firestore Database, linked to the user.

The standard is to link the user to a "users" collection.


Inputs and Settings

Email

The email of the the new user.

Password

The password for the new user to log in.

The only limitation for the password, from Firebase Auth's, is that it must be at least 6 characters long. But it is recommended to apply password security standards, like having at least a uppercase letter, special character and number.

Password Confirmation

The confirmation of the password defined by the user. If th "password" and "password confirmation" don't match, it will result in an error.

Trigger ID (optional)

If left blank, all listener on the page with blank ID's will be triggered at the same time, so we suggest to always define a Trigger ID.

Profile and Other User Data

Copy profile data into Firestore collection

If you check this option, the user's profile data will be stored not only on the user, from the Firebase Authentication service, but also on the user's document.

It is recommended to left it checked, since it gives more flexibility while accessing this information, as well as utilizing it on queries and filters for users.

Display Name

The profile name of the user, associated with the account.

Photo URL

The URL of the profile picture for the user. This profile picture is stored directly on Firebase Authentication, and not on Firebase Storage.

Phone Number (E.164 format)

Users Collection

The name or ID of the collection where user's should be stored in. A document will be created with the same ID of the newly created user account.

Fields

When you create a document on Firestore, you must inform which fields and which content each will have on it's structure, in JSON format. This input allows you to set as many fields as you want.

For each field you must specify the "key" and the "value" that will be stored. For instance, you might want to store a "status" for the new user, of "active", to control access to your app. You'd need to define the "key" = "status" and the "value" = "active".

Field Types

For each key/value pair you define and provide a value on the Fields list, you must provide the same key, but with the type of the value, on the Field Types input. That allows the plugin to turn the texts being fed into the plugin into corresponding values on the JSON structure sent to Firestore.

If the number of Fields and Field Types don't match, the action will result in an error.


Triggered events

  • User Signed Up (if the action was successful)

  • Error in Action (if an error occurs)


Stored values on the listener

User ID

The ID of the user and document created by the action.

User Email

The email of the user account created by the action.

Error Message

If an error occurs, you can check its details on this state on the action listener.

This will link the action with a of the same ID.

When the function finishes running, it will trigger the event, storing the new and on the listener's states.

The users phone number, that must be provided in the , which means a number without spaces and with a plus sign on front of the country code at the begining (e.g. +14155552671).

Since a new document is being created, you can store data in it the same way it is done to any .

See the to see which types are currently supported by the plugin and how to define them.

Those events are triggered by an with the same ID as the provided on the action.

Action Listener
User Signed Up
User ID
User Email
E.164 format
new document
field types table
Action Listener
Trigger ID