Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@firebase-web-authn/api
Advanced tools
A Firebase Extension for authentication with WebAuthn passkeys.
A Firebase Extension for authentication with WebAuthn passkeys.
This package contains a Firebase Function that registers and authenticates WebAuthn passkeys, manages public key credentials in Firestore, and cleans up data if the user cancels the process or unlinks a passkey.
See @firebase-web-authn/extension for simplified installation using firebase ext:install
.
If you would rather deploy the API from your existing Firebase Functions package,
% npm install @firebase-web-authn/api --save-dev
main
file by calling getFirebaseWebAuthnApi
with a config object.import { initializeApp } from "firebase-admin/app";
import { HttpsFunction } from "firebase-functions";
import { getFirebaseWebAuthnApi } from "@firebase-web-authn/api";
getApps().length === 0 && initializeApp();
export const firebaseWebAuthnAPI: HttpsFunction = getFirebaseWebAuthnApi({...});
// Other api...
interface FirebaseWebAuthnConfig {
authenticatorAttachment: AuthenticatorAttachment, // Preferred authenticator attachment modality. "cross-platform" allows security keys. "platform" allows passkey managers.
relyingPartyName: string, // Your app's display name in the passkey popup on some browsers.
userVerificationRequirement?: UserVerificationRequirement, // Your app's user verification requirement. "preferred" is default.
}
% firebase deploy --only functions
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": "firebaseWebAuthnAPI"
}
]
}
]
}
Cloud Datastore User
and Service Account Token Creator
roles to the App Engine default service account
principal in Service accounts under App Engine default service account
> Permissions.Cloud Functions Invoker
role to the allUsers
principal in Cloud Functions under firebaseWebAuthnAPI
> Permissions.FAQs
A Firebase Extension for authentication with WebAuthn passkeys.
The npm package @firebase-web-authn/api receives a total of 8 weekly downloads. As such, @firebase-web-authn/api popularity was classified as not popular.
We found that @firebase-web-authn/api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.