Builder used to create Cloud Functions for Firebase Auth user lifecycle events.

Index

Properties

Private Optional options

Private triggerResource

triggerResource: function

Type declaration

    • (): string
    • Returns string

Methods

onCreate

  • Respond to the creation of a Firebase Auth user.

    Parameters

    • handler: function
        • (user: UserRecord, context: EventContext): PromiseLike<any> | any
        • Parameters

          Returns PromiseLike<any> | any

    Returns CloudFunction<UserRecord>

onDelete

  • Respond to the deletion of a Firebase Auth user.

    Parameters

    • handler: function
        • (user: UserRecord, context: EventContext): PromiseLike<any> | any
        • Parameters

          Returns PromiseLike<any> | any

    Returns CloudFunction<UserRecord>

Private onOperation

  • onOperation(handler: function, eventType: string): CloudFunction<UserRecord>
  • Parameters

    • handler: function
        • (user: UserRecord, context: EventContext): PromiseLike<any> | any
        • Parameters

          Returns PromiseLike<any> | any

    • eventType: string

    Returns CloudFunction<UserRecord>

Static Private dataConstructor