mirror of https://github.com/golang-jwt/jwt.git
Add ID to Claims interface
This commit is contained in:
parent
41af31a765
commit
60dc355c64
|
@ -5,7 +5,7 @@ package jwt
|
||||||
// common basis for validation, it is required that an implementation is able to
|
// common basis for validation, it is required that an implementation is able to
|
||||||
// supply at least the claim names provided in
|
// supply at least the claim names provided in
|
||||||
// https://datatracker.ietf.org/doc/html/rfc7519#section-4.1 namely `exp`,
|
// https://datatracker.ietf.org/doc/html/rfc7519#section-4.1 namely `exp`,
|
||||||
// `iat`, `nbf`, `iss`, `sub`, `aud` and `jti“.
|
// `iat`, `nbf`, `iss`, `sub`, `aud` and `jti`.
|
||||||
type Claims interface {
|
type Claims interface {
|
||||||
GetExpirationTime() (*NumericDate, error)
|
GetExpirationTime() (*NumericDate, error)
|
||||||
GetIssuedAt() (*NumericDate, error)
|
GetIssuedAt() (*NumericDate, error)
|
||||||
|
|
Loading…
Reference in New Issue