@firebase/app-check-types
Advanced tools
Comparing version 0.2.0 to 0.3.0-20217322453
# @firebase/app-check-types | ||
## 0.3.0-20217322453 | ||
### Minor Changes | ||
- [`8599d9141`](https://github.com/firebase/firebase-js-sdk/commit/8599d91416ae8ac5202742f11cee00666d3360ec) [#4902](https://github.com/firebase/firebase-js-sdk/pull/4902) - Add `RecaptchaV3Provider` and `CustomProvider` classes that can be supplied to `firebase.appCheck().activate()`. | ||
## 0.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -20,2 +20,3 @@ /** | ||
import { FirebaseApp } from '@firebase/app-types'; | ||
import { Provider } from '@firebase/component'; | ||
@@ -94,2 +95,25 @@ export interface FirebaseAppCheck { | ||
export class ReCaptchaV3Provider { | ||
/** | ||
* @param siteKey - ReCAPTCHA v3 site key (public key). | ||
*/ | ||
constructor(siteKey: string); | ||
} | ||
/* | ||
* Custom token provider. | ||
*/ | ||
export class CustomProvider { | ||
/** | ||
* @param options - Options for creating the custom provider. | ||
*/ | ||
constructor(options: CustomProviderOptions); | ||
} | ||
interface CustomProviderOptions { | ||
/** | ||
* Function to get an App Check token through a custom provider | ||
* service. | ||
*/ | ||
getToken: () => Promise<AppCheckToken>; | ||
} | ||
/** | ||
@@ -96,0 +120,0 @@ * The token returned from an `AppCheckProvider`. |
{ | ||
"name": "@firebase/app-check-types", | ||
"version": "0.2.0", | ||
"version": "0.3.0-20217322453", | ||
"description": "@firebase/app-check Types", | ||
@@ -5,0 +5,0 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6476
134