sophia
sophia2y ago

sophiah - Hello, How to enable firebase auth re...

Hello, How to enable firebase auth requirement on existing workflow? I have a workflow already and a function on Flutterflow calling buildship (AI streaming) Is there any documentation on how to enable that users must be logged in to get requests form the API call?
Solution:
Hi @sophiah, Thank you for also sharing via in-app support. On checking your workflow logs, it is giving the error: Missing authorization header or invalid format, needs to be in format: Bearer <firebase-IdToken> The authorization token you are passing doesn't have a bearer. You need to pass it in the correct format. You can refer to this documentation - https://www.youtube.com/watch?v=HmVrRIUlAFk and video - https://docs.buildship.com/trigger-nodes/firebase-auth.
Jump to solution
6 Replies
Gaurav Chadha
Gaurav Chadha2y ago
Hello @sophiah, you can switch to Firebase Auth Trigger in your workflow - https://docs.buildship.com/trigger-nodes/firebase-auth. Also, here you can get all the methods to secure your API Call - https://docs.buildship.com/tutorials/secure-api
sophia
sophiaOP2y ago
Thanks a lot! I am already using Firebase Log In on my App, so I just set the Firebase Authenticated Request Trigger on top of my existing Buildship workflow acording to that documentation? Thanks!! I put it on top of my workflow but it is not working - I put the firebase trigger action and then called my previos worlflow and called the new workflow fom flutterflow custom action which was working with my previous workflow.
sophia
sophiaOP2y ago
No description
sophia
sophiaOP2y ago
This is the error I get @Gaurav Chadha
sophia
sophiaOP2y ago
No description
Solution
Gaurav Chadha
Gaurav Chadha2y ago
Hi @sophiah, Thank you for also sharing via in-app support. On checking your workflow logs, it is giving the error: Missing authorization header or invalid format, needs to be in format: Bearer <firebase-IdToken> The authorization token you are passing doesn't have a bearer. You need to pass it in the correct format. You can refer to this documentation - https://www.youtube.com/watch?v=HmVrRIUlAFk and video - https://docs.buildship.com/trigger-nodes/firebase-auth.

Did you find this page helpful?