Authenticate using Firebase Auth
Setting up Firebase Authentication in Superblocks should take no longer than 5 minutes.
1. Add app.superblocks.com
as an authorized domain in Firebase:
2. Create a new web application in Firebase:
3. Copy the config object that Firebase provides (Note: be sure to not include the semicolon at the end of the line!)
4. Now let's move to Superblocks and create a new REST API integration. A REST API integration allows you to create a template for a REST API call that can be re-used across Superblocks APIs. Note that if your REST API is authenticated with Firebase, you cannot use it in Workflows and Scheduled jobs as they can be called headlessly (without user interaction). Choose Firebase as your authentication method:
5. Paste your API configuration and choose your authentication providers (e.g. Google, email/password)
6. Finally, you can reference {{firebase.token}}
anywhere in your Headers or Params to refer to the authentication token returned by Firebase. You can also refer to the currently authenticated user by {{firebase.userId}}
. Here is an example:
You are free to use these bindings outside of this page when running REST API steps from APIs as well! Save this integration and it can be used in any application in Superblocks.
Congratulations! You have now setup Firebase Auth with Superblocks!