-
-
Notifications
You must be signed in to change notification settings - Fork 747
Open
Labels
Description
I recently had a situation where I was passing algorithm instead of algorithms to jwt.decode(). Due to the **kwargs eating the algorithm parameter and the decode method looking at the encoded JWT to figure out what type of algorithm to use, everything appeared to be working the way you would expect, even though it wasn't actually doing what I wanted it to.
If there wasn't the **kwargs there, my code would have raised a TypeError instead and immediately let me know I wasn't using the API correctly. Personally, I think that is very desirable.
Would you be interested in a patch to remove **kwargs and replace them all with named arguments instead?
Reactions are currently unavailable