golang-jwt / jwt

Community maintained clone of https://github.com/dgrijalva/jwt-go

Home Page:https://golang-jwt.github.io/jwt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to parse JWT without verifying signature?

theliuk opened this issue · comments

I'd like to parse a JWT without verifying its signature.
I tried

parser := jwt.NewParser(jwt.WithLeeway(leeway))
_, err := parser.ParseWithClaims(j, claims, nil)

but I get error with message token is unverifiable: no keyfunc was provided".

Is there a way to parse it without checking the signature?