Skip to content

Commit

Permalink
don't return devinfo in the API response
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Oct 29, 2024
1 parent e2f21ce commit cfec56b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,8 @@ func (u *DynamoUser) FinishRegistration(r *http.Request) (string, error) {
if err != nil {
var protocolError *protocol.Error
if errors.As(err, &protocolError) {
fmt.Printf("body: %s\n", string(body))
fmt.Printf("protocolError: %+v\n", protocolError)
fmt.Printf("DevInfo: %s\n", protocolError.DevInfo)
return "", fmt.Errorf("unable to parse credential creation response body: %v -- %s", protocolError,
protocolError.DevInfo)
log.Printf("unable to parse body: %s", body)
log.Printf("ProtocolError: %s, DevInfo: %s", protocolError.Details, protocolError.DevInfo)
}
return "", fmt.Errorf("unable to parse credential creation response body: %w", err)
}
Expand All @@ -299,7 +296,7 @@ func (u *DynamoUser) FinishRegistration(r *http.Request) (string, error) {
if err != nil {
var protocolError *protocol.Error
if errors.As(err, &protocolError) {
return "", fmt.Errorf("unable to create credential: %v -- %s", protocolError, protocolError.DevInfo)
log.Printf("ProtocolError: %s, DevInfo: %s", protocolError.Details, protocolError.DevInfo)
}
return "", fmt.Errorf("unable to create credential: %w", err)
}
Expand Down

0 comments on commit cfec56b

Please sign in to comment.