mirror of
https://github.com/ollama/ollama.git
synced 2025-11-10 20:47:44 +01:00
server: remove jwt decoding error (#5027)
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user