diff options
| author | 2025-08-12 16:04:30 +0200 | |
|---|---|---|
| committer | 2025-08-12 16:04:30 +0200 | |
| commit | 1edc0f7b3c9264c2d4b21455afb5fc2e14ff1ab7 (patch) | |
| tree | 4f5525b6141f2744b95eedaec744873c36f799fd /vendor/github.com/golang-jwt/jwt/v5/map_claims.go | |
| parent | [feature] scheduled statuses (#4274) (diff) | |
| download | gotosocial-1edc0f7b3c9264c2d4b21455afb5fc2e14ff1ab7.tar.xz | |
[chore] bump to code.superseriousbusiness.org/oauth2/v4@ssb-v4.5.3-2 (#4367)
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4367
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/github.com/golang-jwt/jwt/v5/map_claims.go')
| -rw-r--r-- | vendor/github.com/golang-jwt/jwt/v5/map_claims.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/golang-jwt/jwt/v5/map_claims.go b/vendor/github.com/golang-jwt/jwt/v5/map_claims.go index b2b51a1f8..3b9205272 100644 --- a/vendor/github.com/golang-jwt/jwt/v5/map_claims.go +++ b/vendor/github.com/golang-jwt/jwt/v5/map_claims.go @@ -5,9 +5,9 @@ import ( "fmt" ) -// MapClaims is a claims type that uses the map[string]interface{} for JSON +// MapClaims is a claims type that uses the map[string]any for JSON // decoding. This is the default claims type if you don't supply one -type MapClaims map[string]interface{} +type MapClaims map[string]any // GetExpirationTime implements the Claims interface. func (m MapClaims) GetExpirationTime() (*NumericDate, error) { @@ -73,7 +73,7 @@ func (m MapClaims) parseClaimsString(key string) (ClaimStrings, error) { cs = append(cs, v) case []string: cs = v - case []interface{}: + case []any: for _, a := range v { vs, ok := a.(string) if !ok { @@ -92,7 +92,7 @@ func (m MapClaims) parseClaimsString(key string) (ClaimStrings, error) { func (m MapClaims) parseString(key string) (string, error) { var ( ok bool - raw interface{} + raw any iss string ) raw, ok = m[key] |
