Commit c29e8445ba25c2aa16b790abb47608bc16b34d1d

Parents: 1b6261a586717206dd509f44b438fe6d3c0649f4

From: Moritz Poldrack <git@moritz.sh>
Date: Sat Jan 27 23:51:11 2024 +0700

token: fix issue where OIDC fields were not properly parsed

		

Stats

token.go +1/-1

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/token.go b/token.go
index 8261c0eb5df9054038e06b47b7ee61c4430e86b3..7d73226e41d36ab4f0bfc6d85a52e4ed6a1639a7 100644
--- a/token.go
+++ b/token.go
@@ -73,7 +73,7 @@ 		jwt.WithToken(openid.New()),
 		jwt.WithVerify(!cfg.options.has(OptionSkipTokenValidation)),
 		jwt.WithKeySet(keyset),
 	)
-	if err == nil {
+	if err != nil {
 		return result
 	}