tool decode time online jwt iat: 1612500572, exp: 1612504172 code example
Example 1: jwt encode
jwt.encode( { 'client_id':'value', 'expires_in':'datetime'}, SECRET_KEY, algorithm='HS256' )
OBS:
Convert datetime to string because in the backend is a json encode system
and it will generate a TypeError
ex: TypeError: Object of type datetime is not JSON serializable
Example 2: jwt decode
jwt.decode( token, SECRET_KEY, algorithm='HS256' )