Skip to content

Commit da2774b

Browse files
committed
fix mismatch type
1 parent 2b57c6f commit da2774b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middlewares/jwt/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func getIDToken(req *http.Request) string {
6363

6464
// Fetch access_token from URL query param
6565
idToken := req.URL.Query().Get("access_token")
66-
if idToken != nil {
66+
if idToken != "" {
6767
req.URL.Query().Del("access_token")
6868
}
6969
return idToken

0 commit comments

Comments
 (0)