@@ -134,8 +134,8 @@ def _firestore_endpoint_handler(
134
134
event_namespace = event_attributes ["namespace" ]
135
135
event_document = event_attributes ["document" ]
136
136
event_database = event_attributes ["database" ]
137
- event_auth_type = event_attributes [ "authtype" ]
138
- event_auth_id = event_attributes [ "authid" ]
137
+ event_auth_type = event_attributes . get ( "authtype" )
138
+ event_auth_id = event_attributes . get ( "authid" )
139
139
140
140
time = event_attributes ["time" ]
141
141
event_time = _util .timestamp_conversion (time )
@@ -270,7 +270,7 @@ def on_document_written_with_auth_context(**kwargs
270
270
) -> _typing .Callable [[_C1 ], _C1 ]:
271
271
"""
272
272
Event handler that triggers when a document is created, updated, or deleted in Firestore.
273
- This trigger will also provide the authentication context of the principal who triggered
273
+ This trigger will also provide the authentication context of the principal who triggered
274
274
the event.
275
275
276
276
Example:
@@ -369,7 +369,7 @@ def on_document_updated_with_auth_context(**kwargs
369
369
) -> _typing .Callable [[_C1 ], _C1 ]:
370
370
"""
371
371
Event handler that triggers when a document is updated in Firestore.
372
- This trigger will also provide the authentication context of the principal who triggered
372
+ This trigger will also provide the authentication context of the principal who triggered
373
373
the event.
374
374
375
375
Example:
@@ -468,7 +468,7 @@ def on_document_created_with_auth_context(**kwargs
468
468
) -> _typing .Callable [[_C2 ], _C2 ]:
469
469
"""
470
470
Event handler that triggers when a document is created in Firestore.
471
- This trigger will also provide the authentication context of the principal who triggered
471
+ This trigger will also provide the authentication context of the principal who triggered
472
472
the event.
473
473
474
474
Example:
@@ -567,7 +567,7 @@ def on_document_deleted_with_auth_context(**kwargs
567
567
) -> _typing .Callable [[_C2 ], _C2 ]:
568
568
"""
569
569
Event handler that triggers when a document is deleted in Firestore.
570
- This trigger will also provide the authentication context of the principal who triggered
570
+ This trigger will also provide the authentication context of the principal who triggered
571
571
the event.
572
572
573
573
Example:
0 commit comments