fix userID lint
This commit is contained in:
parent
1da13b0eff
commit
8bf8b0ecc2
|
|
@ -54,11 +54,11 @@ func getUserID(introspectClaims string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
userId, ok := claims["sub"].(string)
|
||||
userID, ok := claims["sub"].(string)
|
||||
if !ok {
|
||||
logger.Errorf("error extracting 'sub' from claims")
|
||||
return "", err
|
||||
}
|
||||
|
||||
return userId, nil
|
||||
return userID, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue