mirror of
https://github.com/ollama/ollama.git
synced 2025-04-08 11:58:07 +02:00
server: remove jwt decoding error (#5027)
This commit is contained in:
parent
e87fc7200d
commit
1fd236d177
@ -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 ""
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user