This is a simple example of WebAuthn and Passkey authentication using Go and JavaScript from egregors blog post PassKey in Go.
Set host and port by ENV vars PROTO, HOST and PORT or use default http://localhost:8080
Run server: go run .
- Go WebAuthn lib: https://github.com/go-webauthn/webauthn
- JS lib to use WebAuthn browser API: https://simplewebauthn.dev/docs/packages/browser
- Node + Passkey tutorial https://www.corbado.com/blog/passkey-tutorial-how-to-implement-passkeys