mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-09 22:55:12 -05:00
Fix missing kid in apikeys jwt
This commit is contained in:
parent
1036e9f3f3
commit
d7699389bc
@ -211,6 +211,7 @@ func (h *Handler) createApiJwt(apikey string) (string, error) {
|
||||
Time: time.Now().UTC().Add(time.Hour),
|
||||
}
|
||||
jwt := jwt.NewWithClaims(jwt.SigningMethodRS256, claims)
|
||||
jwt.Header["kid"] = h.config.JwtKid
|
||||
t, err := jwt.SignedString(h.config.JwtPrivateKey)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user