Skip to content

Commit 92e9480

Browse files
committed
Return message instance when successfully verified.
1 parent 8310dcb commit 92e9480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cryptojwt/jwt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ def unpack(self, token):
229229
raise Exception()
230230

231231
if self.msg_cls:
232-
self.verify_profile(self.msg_cls, **info)
232+
return self.verify_profile(self.msg_cls, **info)
233233
else:
234234
try:
235235
_msg_cls = self.iss2msg_cls[info['iss']]
236236
except KeyError:
237237
return info
238238
else:
239-
self.verify_profile(_msg_cls, **info)
239+
return self.verify_profile(_msg_cls, **info)

0 commit comments

Comments
 (0)