go-webauthn-js

command module
v0.0.0-...-3764bee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 7 Imported by: 0

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 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.

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL