@firebase-web-authn/extension v10.4.2
@firebase-web-authn/extension
A Firebase Extension for authentication with WebAuthn passkeys.
This package conforms to the Firebase Extensions spec and is available from either NPM or the Extensions Hub.
Demo: https://firebase-web-authn.dev
Installation
To install from the Extensions Hub, click the button above or run the following commands in your project root:
% firebase ext:install gavinsawyer/firebase-web-authnTo install from NPM, run the following commands in your project root:
% npm i @firebase-web-authn/extension --save-dev
% firebase ext:install ./node_modules/@firebase-web-authn/extensionUsing NPM is recommended to receive updates to the extension alongside other FirebaseWebAuthn dependencies.
Prerequisites
Before installing this extension, you'll need to set up these services in your project. This must be done both in the Firebase Console and initialized in the application:
- App Check with reCAPTCHA Enterprise or v3
- Authentication with the anonymous provider
- Firestore
- Functions
Additional setup:
Create a Firestore Database to store public key credentials with the ID
ext-firebase-web-authnand location matching the function deployment. It is recommended to choose eithernam5in North America oreur3in Europe and to enable delete protection:% firebase firestore:databases:create ext-firebase-web-authn --location ${MULTI_REGION_NAME} --delete-protection ENABLEDAs of July 2024, supported roles for Firebase Extensions do not include
iam.serviceAccounts.signBloborserviceusage.services.usewhich are needed for custom auth providers.- After deploying the extension, grant the
Service Account Token CreatorandService Usage Consumerroles to the extension's service account in IAM underFirebase Extensions firebase-web-authn service account> Edit > Assign roles. - If the service account isn't appearing, click
Grant Accessand enter its address asext-firebase-web-authn@${PROJECT_ID}.iam.gserviceaccount.com
- After deploying the extension, grant the
The browser must reach FirebaseWebAuthn from the same domain as your website. Modify your
firebase.jsonto include a rewrite on each app where you'd like to use passkeys:{ "hosting": [ { "target": "...", "rewrites": [ { "source": "/firebase-web-authn-api", "function": "ext-firebase-web-authn-api" } ] } ] }
More packages
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago