Vito_Corleone
Vito_Corleone3mo ago

Vito_Corleone - Hi new to buildship , when crea...

Hi new to buildship , when create firebase user trigger it requires no authorization code in buildship run mode ,but when i am trying to add it to flutterflow end point at ask for aythorization code to send a post request. need help . sorry new to buildship
Solution:
It is for authenticating and validating the user, For logging and singups you need to handle it from frontend.
Jump to solution
8 Replies
Gaurav Chadha
Gaurav Chadha3mo ago
Hi @Vito_Corleone, The Firebase Auth user Trigger will always require a valid token from the request to authorize, when you execute it from FlutterFlow you'll require to pass the user's ID token in the headers to authenticate the request, as mentioned in the Perquisites of the Trigger documentaiton, you can refer to this - https://docs.buildship.com/trigger-nodes/firebase-auth feel free to more question, and let know if get into further blockers.
Firebase Auth Request Trigger – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Vito_Corleone
Vito_CorleoneOP3mo ago
No description
Vito_Corleone
Vito_CorleoneOP3mo ago
I am referring to this video where he added just 2 triggers and creating user in firebase without authorization token @Gaurav Chadha
Gaurav Chadha
Gaurav Chadha3mo ago
In the video the test is only made using on the 2nd node to create user, not with the trigger, if you are using the trigger node (first one), you'll require to use authorization token, as in flutterflow you need to call the entire endpoint. if you want to skip the autoriraztion token, you can use a rest api trigger instead, but for a secure and better way, it recommended to use firebase auth trigger, you can refer to the shared documentation on how to generate token.
Vito_Corleone
Vito_CorleoneOP3mo ago
Yess I use rest Api call and it worked, but ill try the other method. Thanks for your help @Gaurav Chadha I copied a buildship template that uses a rest API call as a starting node and it returns headers like authorization and content type. But it doesn't in the case of Firebase auth as the starting node.
Gaurav Chadha
Gaurav Chadha3mo ago
yeah, because both triggers are different, did checked out the docs share firestore auth?
Vito_Corleone
Vito_CorleoneOP3mo ago
Yess now I got it. Both triggers are different. But still have question trying to figure out on my own. @Gaurav Chadha Can you please clear up my doubts about the authorization trigger? it's not for logging-in users right?
Solution
Gaurav Chadha
Gaurav Chadha3mo ago
It is for authenticating and validating the user, For logging and singups you need to handle it from frontend.