Ejemplo n.º 1
0
 def get_expires_in(self):
     return jwt.decode(self.encoded_jwt_token)['expires_in']
 def test_encode_jwt(self):
     my_encoded_dictionary = encode(data_dict_for_jwt_token)
     my_decoded_dictionary = decode(my_encoded_dictionary)
     self.assertEqual(my_decoded_dictionary, data_dict_for_jwt_token)
Ejemplo n.º 3
0
 def get_decoded_jwt(self):
     return jwt.decode(self.encoded_jwt_token)