shangsuru / passkey-demo

Register and login with passkeys using go-webauthn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passkey Demo

An implementation of authentication with passkeys using the go-webauthn library

Local Development

Setup the app (installs dependencies and initializes database schema)

./setup.sh

Start the app (starts the Go server together with Redis and Postgres)

./dev.sh

HTTPS setup

This is to test password managers like bitwarden.

alt text

Create a custom HTTPS URL that will route traffic to your your local server. In this case http://localhost:9044

 ngrok http http://localhost:9044

Look for the Forwarding output.

Forwarding      https://51ed-47-150-126-75.ngrok-free.app -> http://localhost:9044

Fix up the .env file.

RP_DISPLAY_NAME=PasskeyDemo
RP_ID=51ed-47-150-126-75.ngrok-free.app
RP_ORIGIN=https://51ed-47-150-126-75.ngrok-free.app

About

Register and login with passkeys using go-webauthn


Languages

Language:Go 56.8%Language:TypeScript 39.6%Language:JavaScript 1.5%Language:Makefile 1.0%Language:HTML 0.9%Language:CSS 0.1%