~tsileo/blobstash

757285a31107eb69996a9df6c5a0fee9e992ec7b — Thomas Sileo 3 months ago 9508e7d
webauthn: remove unused function
1 files changed, 1 insertions(+), 5 deletions(-)

M pkg/webauthn/webauthn.go
M pkg/webauthn/webauthn.go => pkg/webauthn/webauthn.go +1 -5
@@ 216,10 216,6 @@ func (wa *WebAuthn) BeginRegistration(rw http.ResponseWriter, r *http.Request, o
	return string(js), nil
}

func (wa *WebAuthn) CredentialFinder(id []byte) (warp.Credential, error) {
	return nil, fmt.Errorf("no creds")
}

func (wa *WebAuthn) FinishRegistration(rw http.ResponseWriter, r *http.Request, origin, js string) error {
	relyingParty := &rp{
		origin: origin,


@@ 239,7 235,7 @@ func (wa *WebAuthn) FinishRegistration(rw http.ResponseWriter, r *http.Request, 
		return fmt.Errorf("failed to unmarshal attestation: %w", err)
	}

	att, err := warp.FinishRegistration(relyingParty, wa.CredentialFinder, sessionData.CreationOptions, &cred)
	att, err := warp.FinishRegistration(relyingParty, wa.findCredential, sessionData.CreationOptions, &cred)
	if err != nil {
		for err != nil {
			fmt.Printf("%v", err)