mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00: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 {
|
func getTokenSubject(token string) string {
|
||||||
parts := strings.Split(token, ".")
|
parts := strings.Split(token, ".")
|
||||||
if len(parts) != 3 {
|
if len(parts) != 3 {
|
||||||
slog.Error("jwt token does not contain 3 parts")
|
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user