verify jwt token 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' )