revert codacy

This commit is contained in:
Pascal Fischer
2023-03-30 18:59:35 +02:00
parent f273fe9f51
commit ce775d59ae
2 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ const (
UserIDClaim = "sub"
)
// Extract function type
// ExtractClaims Extract function type
type ExtractClaims func(r *http.Request) AuthorizationClaims
// ClaimsExtractor struct that holds the extract function
@ -65,7 +65,7 @@ func NewClaimsExtractor(options ...ClaimsExtractorOption) *ClaimsExtractor {
ce.FromRequestContext = ce.fromRequestContext
}
if ce.userIDClaim == "" {
ce.userIDClaim = string(UserIDClaim)
ce.userIDClaim = UserIDClaim
}
return ce
}