Test: thumbnail and authn / Modify: read thumbnail config from file

This commit is contained in:
HFO4
2019-12-09 11:33:39 +08:00
parent f35c585edf
commit c3c0e92964
13 changed files with 491 additions and 98 deletions

View File

@@ -5,11 +5,11 @@ import (
"github.com/duo-labs/webauthn/webauthn"
)
var Authn *webauthn.WebAuthn
var AuthnInstance *webauthn.WebAuthn
func Init() {
var err error
Authn, err = webauthn.New(&webauthn.Config{
AuthnInstance, err = webauthn.New(&webauthn.Config{
RPDisplayName: "Duo Labs", // Display Name for your site
RPID: "localhost", // Generally the FQDN for your site
RPOrigin: "http://localhost:3000", // The origin URL for WebAuthn requests