Skip to content

Commit

Permalink
Fixes the verify token method. Closes rytilahti#54. Kudos to @SelmaUrban
Browse files Browse the repository at this point in the history
.
  • Loading branch information
syssi committed Sep 4, 2017
1 parent 89f4a6c commit a02a471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirobo/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Utils:
def verify_token(token: bytes):
if not isinstance(token, bytes):
raise TypeError("Token must be bytes")
if len(token) != 32:
if len(token) != 16:
raise ValueError("Token must be of length 32")

@staticmethod
Expand Down

0 comments on commit a02a471

Please sign in to comment.