auth.UserBuilder class

ตัวสร้างใช้เพื่อสร้างฟังก์ชันสำหรับเหตุการณ์วงจรการใช้งานผู้ใช้ Firebase Auth

ลายเซ็น:

export declare class UserBuilder 

วิธีการ

วิธี ตัวดัดแปลง คำอธิบาย
beforeCreate(ตัวจัดการ) บล็อกคำขอเพื่อสร้างผู้ใช้ Firebase Auth
beforeSignIn(ตัวจัดการ) บล็อกคำขอลงชื่อเข้าใช้ผู้ใช้ Firebase Auth
onCreate (ตัวจัดการ) ตอบสนองต่อการสร้างผู้ใช้ Firebase Auth
onDelete (ตัวจัดการ) ตอบสนองต่อการลบผู้ใช้ Firebase Auth

auth.UserBuilder.beforeCreate()

บล็อกคำขอเพื่อสร้างผู้ใช้ Firebase Auth

ลายเซ็น:

beforeCreate(handler: (user: AuthUserRecord, context: AuthEventContext) => BeforeCreateResponse | void | Promise<BeforeCreateResponse> | Promise<void>): BlockingFunction;

พารามิเตอร์

พารามิเตอร์ พิมพ์ คำอธิบาย
ตัวจัดการ (ผู้ใช้: AuthUserRecord บริบท: AuthEventContext) => BeforeCreateResponse | เป็นโมฆะ | สัญญา <BeforeCreateResponse> | สัญญา<โมฆะ> ตัวจัดการเหตุการณ์ที่บล็อกการสร้างผู้ใช้ Firebase Auth

ผลตอบแทน:

การปิดกั้นฟังก์ชั่น

auth.UserBuilder.beforeSignIn()

บล็อกคำขอลงชื่อเข้าใช้ผู้ใช้ Firebase Auth

ลายเซ็น:

beforeSignIn(handler: (user: AuthUserRecord, context: AuthEventContext) => BeforeSignInResponse | void | Promise<BeforeSignInResponse> | Promise<void>): BlockingFunction;

พารามิเตอร์

พารามิเตอร์ พิมพ์ คำอธิบาย
ตัวจัดการ (ผู้ใช้: AuthUserRecord, บริบท: AuthEventContext) => BeforeSignInResponse | เป็นโมฆะ | สัญญา<BeforeSignInResponse> | สัญญา<โมฆะ> ตัวจัดการเหตุการณ์ที่บล็อกการลงชื่อเข้าใช้ของผู้ใช้ Firebase Auth

ผลตอบแทน:

การปิดกั้นฟังก์ชั่น

auth.UserBuilder.onCreate()

ตอบสนองต่อการสร้างผู้ใช้ Firebase Auth

ลายเซ็น:

onCreate(handler: (user: UserRecord, context: EventContext) => PromiseLike<any> | any): CloudFunction<UserRecord>;

พารามิเตอร์

พารามิเตอร์ พิมพ์ คำอธิบาย
ตัวจัดการ (ผู้ใช้: UserRecord บริบท: EventContext ) => PromiseLike<ใด ๆ> | ใดๆ ตัวจัดการเหตุการณ์ที่ตอบสนองต่อการสร้างผู้ใช้ Firebase Auth

ผลตอบแทน:

คลาวด์ฟังก์ชัน < บันทึกผู้ใช้ >

auth.UserBuilder.onDelete()

ตอบสนองต่อการลบผู้ใช้ Firebase Auth

ลายเซ็น:

onDelete(handler: (user: UserRecord, context: EventContext) => PromiseLike<any> | any): CloudFunction<UserRecord>;

พารามิเตอร์

พารามิเตอร์ พิมพ์ คำอธิบาย
ตัวจัดการ (ผู้ใช้: UserRecord บริบท: EventContext ) => PromiseLike<ใด ๆ> | ใดๆ ตัวจัดการเหตุการณ์ที่ตอบสนองต่อการลบผู้ใช้ Firebase Auth

ผลตอบแทน:

คลาวด์ฟังก์ชัน < บันทึกผู้ใช้ >