File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -342,11 +342,7 @@ func (u *DynamoUser) FinishLogin(r *http.Request) (*webauthn.Credential, error)
342342 br := fixEncoding (body )
343343 parsedResponse , err := protocol .ParseCredentialRequestResponseBody (br )
344344 if err != nil {
345- var protocolError * protocol.Error
346- if errors .As (err , & protocolError ) {
347- log .Printf ("failed to parse credential request response body: %s" , body )
348- log .Printf ("ProtocolError: %s, DevInfo: %s" , protocolError .Details , protocolError .DevInfo )
349- }
345+ logProtocolError (fmt .Sprintf ("failed to parse credential request response body: %s" , body ), err )
350346 return & webauthn.Credential {}, fmt .Errorf ("failed to parse credential request response body: %s" , err )
351347 }
352348
You can’t perform that action at this time.
0 commit comments