From 1afd20b67f4ec0edcab836e4e22828f2d21de9c6 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Fri, 16 Feb 2024 18:24:14 -0800 Subject: [PATCH] Fix comment --- src/internal/common/jwt/jwt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/common/jwt/jwt.go b/src/internal/common/jwt/jwt.go index 78074f384..197ffa687 100644 --- a/src/internal/common/jwt/jwt.go +++ b/src/internal/common/jwt/jwt.go @@ -43,10 +43,10 @@ func IsJWTExpired( // GetJWTLifetime returns the issued at(iat) and expiration time(exp) claims // present in the JWT token. These are optional claims and may not be present -// in the token. +// in the token. Absence is not reported as an error. // -// An error is returned if the supplied token is malformed or if the claims are -// missing. Times are returned in UTC to have parity with graph responses. +// An error is returned if the supplied token is malformed. Times are returned +// in UTC to have parity with graph responses. func GetJWTLifetime( ctx context.Context, rawToken string,