[WIP] Simple client for Go WebAuthn powered servers.
WIP Project
It is not tested in any means yet.
Synopsis (typescript)
; ; try catch e
APIs
Register.register
: Registers a new credential for the user. Submits custom data tobeginReg
endpoint, and returns data received fromconfirmReg
endpoint.Auth.login
: Authenticates the user with previously registered credential. Submits custom data tobeginAuth
endpoint, and returns data received fromconfirmAuth
endpoint.isSupported
: See if current browser supports WebAuthn.Client
: Wraps bothRegister
andAuth
in an object.
Endpoints have default values:
beginReg
: /register/challengeconfirmReg
: /register/verifybeginAuth
: /login/challengeconfirmAuth
: /login/verify
License
Copyright (c) 2019 Ronmi Ren ronmi.ren@gmail.com
Licensed under the MPL-2.0 license.