Skip to content

Commit

Permalink
Remove explicit types for Contains method in XSRFIgnoreMethods check
Browse files Browse the repository at this point in the history
  • Loading branch information
oalexander6 committed Jul 25, 2024
1 parent 376bdfe commit 88b74a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (j *Service) Get(r *http.Request) (Claims, string, error) {
return Claims{}, "", fmt.Errorf("token expired")
}

if j.DisableXSRF || slices.Contains[[]string, string](j.XSRFIgnoreMethods, r.Method) {
if j.DisableXSRF || slices.Contains(j.XSRFIgnoreMethods, r.Method) {
return claims, tokenString, nil
}

Expand Down

0 comments on commit 88b74a4

Please sign in to comment.