firebase-admin.phone-number-verification package

Firebase Phone Number Verification.

Functions

Function Description
getPhoneNumberVerification(app) Gets the PhoneNumberVerification service for the default app or a given app.getPhoneNumberVerification() can be called with no arguments to access the default app's PhoneNumberVerification service or as getPhoneNumberVerification(app) to access the PhoneNumberVerification service associated with a specific app.

Classes

Class Description
PhoneNumberVerification PhoneNumberVerification service bound to the provided app.

Interfaces

Interface Description
PhoneNumberVerificationToken Interface representing a PhoneNumberVerification token.

getPhoneNumberVerification(app)

Gets the PhoneNumberVerification service for the default app or a given app.

getPhoneNumberVerification() can be called with no arguments to access the default app's PhoneNumberVerification service or as getPhoneNumberVerification(app) to access the PhoneNumberVerification service associated with a specific app.

Signature:

export declare function getPhoneNumberVerification(app?: App): PhoneNumberVerification;

Parameters

Parameter Type Description
app App

Returns:

PhoneNumberVerification

The PhoneNumberVerification service associated with the provided app.

Example 1

// Get the PhoneNumberVerification service for the default app
const defaultPnv = getPhoneNumberVerification();

Example 2

// Get the PhoneNumberVerification service for a given app
const otherPnv = getPhoneNumberVerification(otherApp);