Created
August 3, 2022 17:49
-
-
Save sumanthkumarc/94fb5503c4447daa0023f73d5e365b9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copied from https://github.com/kumahq/kuma/blob/master/pkg/core/tokens/validator.go#L65 | |
revoked, err := j.revocations.IsRevoked(ctx, claims.ID()) | |
if err != nil { | |
return errors.Wrap(err, "could not check if the token is revoked") | |
} | |
if revoked { | |
return errors.New("token is revoked") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment