1

I am using jwt.decode() to decode an JWT token. But today when I am using

jwt.decode(IdToken, verify= False)

an error is coming

It is required that you pass in a value for the "algorithms" argument when calling decode().

I dont want to validate the token, I simply just need to decode it.

jps
  • 20,041
  • 15
  • 75
  • 79
  • 1
    You are not giving us much to work with here. Can you show some code? You are saying "But today" - what changed since yesterday? – Lydia van Dyke Dec 29 '20 at 10:32
  • There was a version update and the old `verify` paramter is no longer supported. The linked Q/A shows the update. – jps Dec 29 '20 at 10:52
  • yes thank you i am using option parameter ryt now – naruto uzumaki Dec 29 '20 at 12:19
  • I don't see how that other thread has the answer to this question. Mods? – maxpaj Jan 22 '21 at 09:34
  • @maxpaj: the accepted answer in the linked Q/A mentions the different ways to call `decode` in Version <2.0 and >= 2.0. That caused the problem for the OP. – jps Feb 04 '21 at 22:03

0 Answers0