Update ParseUnverified godoc (#341)

This commit is contained in:
Eduardo Haesbaert 2023-08-22 15:26:47 -03:00 committed by GitHub
parent 78e25d6b09
commit 6879d2cf1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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. // 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 // It's only ever useful in cases where you know the signature is valid (since it has already
// been checked previously in the stack) and you want to extract values from it. // 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) { func (p *Parser) ParseUnverified(tokenString string, claims Claims) (token *Token, parts []string, err error) {
parts = strings.Split(tokenString, ".") parts = strings.Split(tokenString, ".")
if len(parts) != 3 { if len(parts) != 3 {