Skip to content

Settings and activity

4 results found

  1. 23 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  General » Firestore  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Luiz Americo Pereira Camara supported this idea  · 
  2. 117 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    15 comments  ·  General » Emulators  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Luiz Americo Pereira Camara supported this idea  · 
  3. 30 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Luiz Americo Pereira Camara commented  · 

    The title is not accurate. context.auth is only provided in realtime database event handlers.

    Cloud Functions Firestore triggers (the equivalent to realtime database event handlers) do not have context.auth neither in 1st gen nor in 2nd gen.

    A more accurate title would be "Create a context.auth for firestore triggers like in realtime database event handlers"

    Also, this is same as https://firebase.uservoice.com/forums/948424-general/suggestions/46611049-auth-oncreate-and-ondelete-triggers-for-v2-functio

    As for use case, i need this feature to create audit logs (who created, deleted, updated an entity). Currently i need to pass the user id in every call that updates data, polluting the document structure.

    Luiz Americo Pereira Camara supported this idea  · 
  4. 31 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Luiz Americo Pereira Camara supported this idea  ·