Add ID to Claims interface

This commit is contained in:
Stefan Arentz 2023-10-09 13:43:48 -04:00
parent 41af31a765
commit 60dc355c64
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
// supply at least the claim names provided in
// 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 {
GetExpirationTime() (*NumericDate, error)
GetIssuedAt() (*NumericDate, error)