Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brokenhandsio/vapor-passkeydemo

A demo for implementing PassKeys with Vapor
https://github.com/brokenhandsio/vapor-passkeydemo

passkeys passkeys-demo server-side-swift vapor vapor-swift webauthn

Last synced: about 17 hours ago
JSON representation

A demo for implementing PassKeys with Vapor

Awesome Lists containing this project

README

        

Passkeys Logo

# Vapor Passkey Demo

Proof of concept app for trying to integrate passkeys and WebAuthn into Vapor

![Screenshot of app](/images/demo.png)

## Usage

Clone the project, then in Terminal run

```bash
swift run
```

In your browser go to http://localhost:8080 and follow the steps!

## Development

If you want to make CSS changes you'll need to download the Tailwind CSS executable and place it in the root of the
project:

```bash
# Example for macOS arm64
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-macos-arm64
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwindcss
```

Then run the following to generate Tailwind CSS classes and watch for changes:

```bash
./tailwindcss -i Resources/Utils/styles.css -o Public/styles/tailwind.css --watch
```

> Do not edit `Public/styles/tailwind.css` manually as it will be overwritten by the above command!