pulyaevskiy / firebase-functions-interop

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

Support for Firebase Authentication Triggers #16

Closed TonyDowney closed 6 years ago

TonyDowney commented 6 years ago

Support for functions.auth.user().onCreate & functions.auth.user().onDelete

Reference Docs: https://firebase.google.com/docs/reference/functions/functions.auth.UserBuilder https://firebase.google.com/docs/functions/auth-events

Thanks!

pulyaevskiy commented 6 years ago

Thanks for submitting this request.

Some notes: looks like at least UserInfo and UserMetadata can be reused from firebase_admin_interop. UserRecord looks similar but hides some fields (like passwordHash) so might be better to create a separate binding.

@Cretezy just wondering if you planned to tackle this any time soon? I should have some time in a couple days to get this done, so don't want us both spend time doing the same thing.

Cretezy commented 6 years ago

Yeah, I can work on it tonight and tomorrow. I'll have a PR within a day hopefully!

Cretezy commented 6 years ago

Started https://github.com/pulyaevskiy/firebase-functions-interop/pull/17

Cretezy commented 6 years ago

Merged!

pulyaevskiy commented 6 years ago

I'm about to release a Pub version. Stay tuned!

pulyaevskiy commented 6 years ago

https://pub.dartlang.org/packages/firebase_functions_interop/versions/1.0.0-dev.3.0

Thanks @Cretezy !

@TonyDowney please report if you find any issues with the new version.