10.3.7 • Published 2 months ago

@firebase-web-authn/extension v10.3.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

@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.

GitHub workflow status Latest version in NPM

Demo: https://firebase-web-authn.dev

Installation

Install

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-authn

To 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/extension

Using 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:

  1. Create a Firestore Database to store public key credentials with the ID ext-firebase-web-authn and location matching the function deployment. It is recommended to choose either nam5 in North America or eur3 in Europe and to enable delete protection:

    % firebase firestore:databases:create ext-firebase-web-authn --location ${MULTI_REGION_NAME} --delete-protection ENABLED
  2. As of September 2023, supported roles for Firebase Extensions do not include iam.serviceAccounts.signBlob which is needed for custom auth providers.

    • After deploying the extension, grant the Service Account Token Creator role to the extension's service account in IAM under Firebase Extensions firebase-web-authn service account > Edit > Assign roles.
    • If the service account isn't appearing, click Grant Access and enter its address as ext-firebase-web-authn@${PROJECT_ID}.iam.gserviceaccount.com
  3. The browser must reach FirebaseWebAuthn from the same domain as your website. Modify your firebase.json to 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

10.3.7

2 months ago

10.3.4

2 months ago

10.3.5

2 months ago

10.3.6

2 months ago

10.3.3

5 months ago

10.3.2

5 months ago

9.6.4

10 months ago

9.6.3

10 months ago

9.6.2

10 months ago

9.6.1

10 months ago

9.6.0

10 months ago

10.0.0

9 months ago

10.2.0

8 months ago

10.2.1

8 months ago

9.6.6

9 months ago

10.2.2

8 months ago

9.6.5

10 months ago

10.1.4

8 months ago

10.1.5

8 months ago

10.1.6

8 months ago

9.5.3

10 months ago

10.1.1

9 months ago

10.3.0

8 months ago

10.1.2

9 months ago

10.3.1

8 months ago

10.1.3

8 months ago

9.5.2

11 months ago

9.5.1

11 months ago

9.5.0

11 months ago

9.4.23

11 months ago

9.4.22

11 months ago

9.4.21

11 months ago

9.4.20

11 months ago

9.4.19

11 months ago

9.4.18

12 months ago

9.4.17

12 months ago

9.4.16

12 months ago

9.4.15

1 year ago

9.4.14

1 year ago

9.4.13

1 year ago

9.4.12

1 year ago

9.4.11

1 year ago

9.4.10

1 year ago

9.4.9

1 year ago

9.4.8

1 year ago

9.4.7

1 year ago

9.4.6

1 year ago

9.4.5

1 year ago

9.4.4

1 year ago

9.4.3

1 year ago

9.4.2

1 year ago

9.4.1

1 year ago

9.4.0

1 year ago

9.3.1

1 year ago

9.3.0

1 year ago

9.2.3

1 year ago