pulyaevskiy / firebase-functions-interop

Firebase Functions Interop Library for Dart.
BSD 3-Clause "New" or "Revised" License
191 stars 52 forks source link

Accessing rawRequest from CallableContext #73

Open jimmyff opened 3 years ago

jimmyff commented 3 years ago

Hi, I would like to access the context.rawRequest['ip'] from a callable but it appears that you're not exposing the rawRequest in CallableContext.

I realise I could get the IP by switching to callable but ideally I'd use callable for the authentication.

Would it be something you'd consider? I would be happy to submit a PR if you let me know how you would want it implementing?

jimmyff commented 3 years ago

Hey @pulyaevskiy, hope you're doing alright over there? Don't suppose you had chance to consider this?

Thanks