10.3.7 • Published 2 months ago

@firebase-web-authn/types v10.3.7

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

@firebase-web-authn/types

A Firebase Extension for authentication with WebAuthn passkeys.

This package contains types and interfaces used internally by FirebaseWebAuthn and for implementing it in a secure context.

FirebaseWebAuthn version Firebase Admin SDK version

WebAuthnUserCredential

Information about the public key credential associated with the user

import { WebAuthnUserCredential } from "@firebase-web-authn/types";
interface WebAuthnUserCredential {
  "authenticatorAttachment": AuthenticatorAttachment, // The AuthenticatorAttachment associated with the credential.
  "backedUp": boolean,                                // Whether the private key has been backed up successfully.
  "counter": number,                                  // Updated automatically by some browsers to help prevent replay attacks.
  "id": Uint8Array,                                   // ID associated with the credential.
  "publicKey": Uint8Array,                            // Public key associated with the credential.
}

WebAuthnUserCredentialFactor

The authentication factor associated with the credential.

import { WebAuthnUserCredentialFactor } from "@firebase-web-authn/types";
type WebAuthnUserCredentialFactor = "first" | "second";

WebAuthnProcess

The WebAuthn process associated with operations and related cryptographic challenges.

import { WebAuthnProcess } from "@firebase-web-authn/types";
type WebAuthnProcess = "authentication" | "reauthentication" | "registration";

WebAuthnUserDocument

Document in the users collection of the ext-firebase-web-authn Firestore Database. This should not have read or write access from users.

import { WebAuthnUserDocument } from "@firebase-web-authn/types";
interface WebAuthnUserDocument {
  "challenge"?: string,                                // Only present between operations and cleaned up if the user cancels.
  "credentials"?: {                                    // An object of "first" and "second" WebAuthnUserCredentials with either being null if not found.
    [key in WebAuthnUserCredentialFactor]: WebAuthnUserCredential | null
  },
  "lastCredentialUsed"?: WebAuthnUserCredentialFactor, // The last credential successfully authenticated given as WebAuthnUserCredentialFactor.
  "lastPresent"?: Timestamp,                           // Automatically updated on successful operations.
  "lastVerified"?: Timestamp,                          // Automatically updated on successful operations that verified the user with biometrics.
  "lastWebAuthnProcess"?: WebAuthnProcess,             // The last WebAuthnProcess successfully completed by the user..
}

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

7 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

9.2.2

1 year ago

9.2.1

1 year ago

9.2.0

1 year ago