Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months 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 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-08T13:48:37.000Z (9 months ago)
- Last Synced: 2024-05-08T14:45:49.625Z (9 months ago)
- Topics: faceid, fido2, javascript, passkey, passkeys, touchid, vanilla-javascript, webauthn
- Language: HTML
- Homepage: https://www.corbado.com/passkeys/javascript
- Size: 13.7 KB
- Stars: 5
- 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 ./
```