Back to Firebase Js Sdk

ApplicationVerifier interface

docs-devsite/auth.applicationverifier.md

12.12.11.4 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

ApplicationVerifier interface

A verifier for domain verification and abuse prevention.

Currently, the only implementation is RecaptchaVerifier<!-- -->.

<b>Signature:</b>

typescript
export interface ApplicationVerifier 

Properties

PropertyTypeDescription
typestringIdentifies the type of application verifier (e.g. "recaptcha").

Methods

MethodDescription
verify()Executes the verification process.

ApplicationVerifier.type

Identifies the type of application verifier (e.g. "recaptcha").

<b>Signature:</b>

typescript
readonly type: string;

ApplicationVerifier.verify()

Executes the verification process.

<b>Signature:</b>

typescript
verify(): Promise<string>;

<b>Returns:</b>

Promise<string>

A Promise for a token that can be used to assert the validity of a request.