From 04aead80984f100cb26c5fb6cf6b39e9ac3a938f Mon Sep 17 00:00:00 2001 From: Eduardo Haesbaert Date: Tue, 22 Aug 2023 11:22:07 -0300 Subject: [PATCH 1/2] Update ParseUnverified godoc --- parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.go b/parser.go index 550d2dba..7fbb0e56 100644 --- a/parser.go +++ b/parser.go @@ -117,8 +117,8 @@ func (p *Parser) ParseWithClaims(tokenString string, claims Claims, keyFunc Keyf // // WARNING: Don't use this method unless you know what you're doing. // -// It's only ever useful in cases where you know the signature is valid (because it has -// been checked previously in the stack) and you want to extract values from it. +// It's only ever useful in cases where you know the signature is valid (since it has already +// been or will be checked elsewhere in the stack) and you want to extract values from it. func (p *Parser) ParseUnverified(tokenString string, claims Claims) (token *Token, parts []string, err error) { parts = strings.Split(tokenString, ".") if len(parts) != 3 { From b09847e644b18626a018ab649669b837638f8370 Mon Sep 17 00:00:00 2001 From: Eduardo Haesbaert <7138209+duhaesbaert@users.noreply.github.com> Date: Tue, 22 Aug 2023 13:42:11 -0300 Subject: [PATCH 2/2] remove additional spacing Co-authored-by: Michael Fridman --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.go b/parser.go index 7fbb0e56..8fc49199 100644 --- a/parser.go +++ b/parser.go @@ -117,7 +117,7 @@ func (p *Parser) ParseWithClaims(tokenString string, claims Claims, keyFunc Keyf // // WARNING: Don't use this method unless you know what you're doing. // -// It's only ever useful in cases where you know the signature is valid (since it has already +// It's only ever useful in cases where you know the signature is valid (since it has already // been or will be checked elsewhere in the stack) and you want to extract values from it. func (p *Parser) ParseUnverified(tokenString string, claims Claims) (token *Token, parts []string, err error) { parts = strings.Split(tokenString, ".")