10.4.2 • Published 9 months ago

@firebase-web-authn/types v10.4.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 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";

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

9 months ago

10.4.1

12 months ago

10.4.0

12 months ago

10.3.7

1 year ago

10.3.4

1 year ago

10.3.5

1 year ago

10.3.6

1 year ago

10.3.3

2 years ago

10.3.2

2 years ago

9.6.4

2 years ago

9.6.3

2 years ago

9.6.2

2 years ago

9.6.1

2 years ago

9.6.0

2 years ago

10.0.0

2 years ago

10.2.0

2 years ago

10.2.1

2 years ago

9.6.6

2 years ago

10.2.2

2 years ago

9.6.5

2 years ago

10.1.4

2 years ago

10.1.5

2 years ago

10.1.6

2 years ago

9.5.3

2 years ago

10.1.1

2 years ago

10.3.0

2 years ago

10.1.2

2 years ago

10.3.1

2 years ago

10.1.3

2 years ago

9.5.2

2 years ago

9.5.1

2 years ago

9.5.0

2 years ago

9.4.23

2 years ago

9.4.22

2 years ago

9.4.21

2 years ago

9.4.20

2 years ago

9.4.19

2 years ago

9.4.18

2 years ago

9.4.17

2 years ago

9.4.16

2 years ago

9.4.15

2 years ago

9.4.14

2 years ago

9.4.13

2 years ago

9.4.12

2 years ago

9.4.11

2 years ago

9.4.10

2 years ago

9.4.9

2 years ago

9.4.8

2 years ago

9.4.7

2 years ago

9.4.6

2 years ago

9.4.5

2 years ago

9.4.4

2 years ago

9.4.3

2 years ago

9.4.2

2 years ago

9.4.1

2 years ago

9.4.0

2 years ago

9.3.1

2 years ago

9.3.0

2 years ago

9.2.3

2 years ago

9.2.2

2 years ago

9.2.1

2 years ago

9.2.0

2 years ago