File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ import (
2020 "encoding/json"
2121 "errors"
2222 "fmt"
23- "github.com/golang-jwt/jwt/v4"
24- "github.com/supertokens/supertokens-golang/recipe/session/sessmodels"
2523 "reflect"
2624 "strconv"
2725 "strings"
26+
27+ "github.com/golang-jwt/jwt/v4"
28+ "github.com/supertokens/supertokens-golang/recipe/session/sessmodels"
2829)
2930
3031var HEADERS = []string {
@@ -89,7 +90,7 @@ func ParseJWTWithoutSignatureVerification(token string) (sessmodels.ParsedJWTInf
8990 kidString := kidInHeader .(string )
9091 kid = & kidString
9192
92- if parsedHeader ["typ" ].(string ) != "JWT" || parseError != nil || versionNumber < latestAccessTokenVersion || parsedHeader ["kid" ] == nil {
93+ if parsedHeader ["typ" ].(string ) != "JWT" || parseError != nil || versionNumber < 3 || parsedHeader ["kid" ] == nil {
9394 return sessmodels.ParsedJWTInfo {}, errors .New ("JWT header mismatch" )
9495 }
9596
You can’t perform that action at this time.
0 commit comments