ory-am/hydra

View on GitHub
oauth2/session.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Session.UnmarshalJSON has 5 return statements (exceeds 4 allowed).
Open

func (s *Session) UnmarshalJSON(original []byte) (err error) {
    transformed := original
    originalParsed := gjson.ParseBytes(original)

    for oldKey, newKey := range keyRewrites {
Severity: Major
Found in oauth2/session.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status