From 88b74a45d3ce1364972eeb8956a4777a986b0e79 Mon Sep 17 00:00:00 2001 From: Owen Alexander Date: Thu, 25 Jul 2024 17:20:06 -0400 Subject: [PATCH] Remove explicit types for Contains method in XSRFIgnoreMethods check --- token/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/jwt.go b/token/jwt.go index b48c364..73cc1c2 100644 --- a/token/jwt.go +++ b/token/jwt.go @@ -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 }