GoogleCloudPlatform / functions-framework-dart

FaaS (Function as a service) framework for writing portable Dart functions
https://pub.dev/packages/functions_framework
Apache License 2.0
532 stars 54 forks source link

HTTPS Callable cloud-functions #221

Open yamauchieduardo opened 3 years ago

yamauchieduardo commented 3 years ago

Awesome project! I'm really impress, I'm looking something like this around 3 years. I'll try to use this package in a large production project. But I'm have some questions:

Thanks for the attention.

mtwichel commented 3 years ago

Hey! I'm not the maintainer, just someone trying to solve a similar problem. I agree this would be awesome to have, but for now I've found some nice workarounds you could try:

As I understand, the advantage to using callable functions is that it validates the auth token from Firebase auth and parses your json payload into an object.

EDIT July 2022: This isn't true anymore, you can use json serialized functions and headers at the same time :) See this answer for more details

novvia-dev commented 1 year ago

Hey there @mtwichel do you happen to remember where that example was?

mtwichel commented 1 year ago

Hey there @mtwichel do you happen to remember where that example was?

Weird that my link didn't work on my comment originally. Here it is: https://github.com/GoogleCloudPlatform/functions-framework-dart/tree/main/examples/json