Skip to content

Commit 07a82cf

Browse files
committed
add authcontxt params to the DatabaseEvent object
1 parent 7f435e2 commit 07a82cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/v2/providers/database.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ export interface DatabaseEvent<T, Params = Record<string, string>> extends Cloud
8080
* Only named capture groups will be populated - {key}, {key=*}, {key=**}
8181
*/
8282
params: Params;
83+
/**
84+
* The type of principal that triggered the event.
85+
*/
86+
authType?: "app_user" | "admin" | "unauthenticated";
87+
/**
88+
* The unique identifier of the principal.
89+
*/
90+
authId?: string;
8391
}
8492

8593
/** ReferenceOptions extend EventHandlerOptions with provided ref and optional instance */

0 commit comments

Comments
 (0)