Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pulsejet/go-webauthn-js
JavaScript WebAuthn server library, compiled from Go
https://github.com/pulsejet/go-webauthn-js
golang gopherjs js wasm webauthn
Last synced: 28 days ago
JSON representation
JavaScript WebAuthn server library, compiled from Go
- Host: GitHub
- URL: https://github.com/pulsejet/go-webauthn-js
- Owner: pulsejet
- License: mit
- Created: 2020-04-12T23:15:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T22:38:25.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T15:05:50.817Z (9 months ago)
- Topics: golang, gopherjs, js, wasm, webauthn
- Language: Go
- Homepage: https://pulsejet.github.io/go-webauthn-js/
- Size: 4.61 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-WebAuthn-JS
A go webauthn server library compiled with GopherJS. You can run a webauthn server-client in the browser with this!
Uses [my fork of duo-labs/webauthn](https://github.com/pulsejet/webauthn) as the primary library, removing some features to trim down the size and replacing libraries with slimmer ones, and borrows heavily from the [webauthn example](https://github.com/hbolimovsky/webauthn-example).
## Usage
See index.html for an example. You may similarly run the server in node, with
```
npm i go-webauthn-js
```
Note that this is might be slow, broken and non-performant. Don't use it unless you know what you're doing.## Compiling
Compile with gopherjs, and optionally minify with the closure compiler
```
gopherjs build -o go-webauthn.js
java -jar ./closure.jar --js ./go-webauthn.js --js_output_file go-webauthn.min.js
```## WASM Target
The project initially targeted WASM. You will need Go 1.14+ to compile.
```
GOOS=js GOARCH=WASM go build -o main.wasm
```