mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
parent
b42e4bacf2
commit
d7e1462d10
@ -94,6 +94,9 @@ func authViewer(ctx context.Context, jwtKey string, bearerToken token.Token, svc
|
||||
if err != nil {
|
||||
return nil, authError{reason: err.Error()}
|
||||
}
|
||||
if jwtToken.Valid != true {
|
||||
return nil, authError{reason: "invalid jwt token"}
|
||||
}
|
||||
claims, ok := jwtToken.Claims.(jwt.MapClaims)
|
||||
if !ok {
|
||||
return nil, authError{reason: "no jwt claims"}
|
||||
|
Loading…
Reference in New Issue
Block a user