mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-04 19:55:40 +00:00
@@ -126,7 +126,7 @@ func (t *Token) SignExpires(secret string, exp int64) (string, error) {
|
||||
}
|
||||
|
||||
func keyFunc(token *Token, fn SecretFunc) jwt.Keyfunc {
|
||||
return func(t *jwt.Token) (interface{}, error) {
|
||||
return func(t *jwt.Token) (any, error) {
|
||||
claims, ok := t.Claims.(jwt.MapClaims)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("token claim is not a MapClaims")
|
||||
|
Reference in New Issue
Block a user