Update claims.go

Co-authored-by: Michael Fridman <mf192@icloud.com>
This commit is contained in:
Christian Banse 2023-02-19 19:58:05 +01:00 committed by GitHub
parent 1e16f55059
commit 81449672cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)