auth.UserBuilder class Stay organized with collections Save and categorize content based on your preferences.
Builder used to create functions for Firebase Auth user lifecycle events.
Signature:
exportdeclareclassUserBuilderMethods
| Method | Modifiers | Description |
|---|---|---|
| beforeCreate(handler) | Blocks request to create a Firebase Auth user. | |
| beforeEmail(handler) | ||
| beforeSignIn(handler) | Blocks request to sign-in a Firebase Auth user. | |
| beforeSms(handler) | ||
| onCreate(handler) | Responds to the creation of a Firebase Auth user. | |
| onDelete(handler) | Responds to the deletion of a Firebase Auth user. |
auth.UserBuilder.beforeCreate()
Blocks request to create a Firebase Auth user.
Signature:
beforeCreate(handler:(user:AuthUserRecord,context:AuthEventContext)=>MaybeAsync<BeforeCreateResponse|void>):BlockingFunction;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (user: AuthUserRecord, context: AuthEventContext) => MaybeAsync<BeforeCreateResponse | void> | Event handler that blocks creation of a Firebase Auth user. |
Returns:
auth.UserBuilder.beforeEmail()
Signature:
beforeEmail(handler:(context:AuthEventContext)=>MaybeAsync<BeforeEmailResponse|void>):BlockingFunction;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (context: AuthEventContext) => MaybeAsync<BeforeEmailResponse | void> |
Returns:
auth.UserBuilder.beforeSignIn()
Blocks request to sign-in a Firebase Auth user.
Signature:
beforeSignIn(handler:(user:AuthUserRecord,context:AuthEventContext)=>MaybeAsync<BeforeSignInResponse|void>):BlockingFunction;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (user: AuthUserRecord, context: AuthEventContext) => MaybeAsync<BeforeSignInResponse | void> | Event handler that blocks sign-in of a Firebase Auth user. |
Returns:
auth.UserBuilder.beforeSms()
Signature:
beforeSms(handler:(context:AuthEventContext)=>MaybeAsync<BeforeSmsResponse|void>):BlockingFunction;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (context: AuthEventContext) => MaybeAsync<BeforeSmsResponse | void> |
Returns:
auth.UserBuilder.onCreate()
Responds to the creation of a Firebase Auth user.
Signature:
onCreate(handler:(user:UserRecord,context:EventContext)=>PromiseLike<any>|any):CloudFunction<UserRecord>;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (user:UserRecord, context:EventContext) => PromiseLike<any> | any | Event handler that responds to the creation of a Firebase Auth user. |
Returns:
auth.UserBuilder.onDelete()
Responds to the deletion of a Firebase Auth user.
Signature:
onDelete(handler:(user:UserRecord,context:EventContext)=>PromiseLike<any>|any):CloudFunction<UserRecord>;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (user:UserRecord, context:EventContext) => PromiseLike<any> | any | Event handler that responds to the deletion of a Firebase Auth user. |
Returns:
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-22 UTC.