mirror of https://github.com/golang-jwt/jwt.git
Update claims.go
Co-authored-by: Michael Fridman <mf192@icloud.com>
This commit is contained in:
parent
1e16f55059
commit
81449672cc
|
@ -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` and `aud`.
|
// `iat`, `nbf`, `iss`, `sub` and `aud`.
|
||||||
type Claims interface {
|
type Claims interface {
|
||||||
GetExpirationTime() (*NumericDate, error)
|
GetExpirationTime() (*NumericDate, error)
|
||||||
GetIssuedAt() (*NumericDate, error)
|
GetIssuedAt() (*NumericDate, error)
|
||||||
|
|
Loading…
Reference in New Issue