mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 22:50:15 +00:00
ci/cd: add basic static analysis for backend (#389)
This commit is contained in:
@@ -492,6 +492,7 @@ func (s *OidcService) GetUserClaimsForClient(userID string, clientID string) (ma
|
||||
for _, customClaim := range customClaims {
|
||||
// The value of the custom claim can be a JSON object or a string
|
||||
var jsonValue interface{}
|
||||
//nolint:errcheck // Ignore error for JSON unmarshalling
|
||||
json.Unmarshal([]byte(customClaim.Value), &jsonValue)
|
||||
if jsonValue != nil {
|
||||
// It's JSON so we store it as an object
|
||||
|
||||
Reference in New Issue
Block a user