mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
parent
b42e4bacf2
commit
d7e1462d10
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue