server: remove jwt decoding error (#5027)

This commit is contained in:
Jeffrey Morgan 2024-06-13 11:21:15 -07:00 committed by GitHub
parent e87fc7200d
commit 1fd236d177
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -960,7 +960,6 @@ var errUnauthorized = fmt.Errorf("unauthorized: access denied")
func getTokenSubject(token string) string {
parts := strings.Split(token, ".")
if len(parts) != 3 {
slog.Error("jwt token does not contain 3 parts")
return ""
}