https://github.com/corbado/example-passkeys-javascript
Vanilla JavaScript repository of a sample app that offers passkey authentication.
https://github.com/corbado/example-passkeys-javascript
faceid fido2 javascript passkey passkeys touchid vanilla-javascript webauthn
Last synced: about 1 year ago
JSON representation
Vanilla JavaScript repository of a sample app that offers passkey authentication.
- Host: GitHub
- URL: https://github.com/corbado/example-passkeys-javascript
- Owner: corbado
- Created: 2023-09-13T12:48:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T13:48:37.000Z (about 2 years ago)
- Last Synced: 2025-04-10T21:56:44.356Z (about 1 year ago)
- Topics: faceid, fido2, javascript, passkey, passkeys, touchid, vanilla-javascript, webauthn
- Language: HTML
- Homepage: https://www.corbado.com/passkeys/javascript
- Size: 15.6 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Passkey Example App
This is a sample implementation of the Corbado Vanilla JavaScript component being integrated into a plain HTML, CSS &
JavaScript web application.
Please see the [full blog post](https://www.corbado.com/blog/passkeys-javascript) to understand the detailed steps
needed to integrate passkeys into JavaScript apps.
## File structure
- `index.html`: The login page
- `profile.html`: The profile page that is only accessible after a successful login
## Prerequisites
Please follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure
a project in the [Corbado developer panel](https://app.corbado.com/signin#register). Most importantly, you need to
obtain a `projectId` and insert it in the code for the placeholder ``.
## Usage
We need a local webserver to start our application. We chose
the [http-server](https://www.npmjs.com/package/http-server) package for this.
Install it with
```bash
npm install --global http-server
```
Then you can run the project locally with
```bash
http-server ./
```