Skip to content

Commit f8cfa89

Browse files
committed
Human message regarding minimum client_secret length
1 parent 030b1c6 commit f8cfa89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cryptojwt/jwk/hmac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
self.key = b64d(bytes(self.k))
5858

5959
if len(self.key) < 16:
60-
raise UnsupportedAlgorithm("key too short")
60+
raise UnsupportedAlgorithm("client_secret too short, it should be at least 16 digits")
6161

6262
def deserialize(self):
6363
self.key = b64d(bytes(self.k))

0 commit comments

Comments
 (0)