Untitled

 avatar
unknown
python
4 years ago
249 B
3
Indexable
>>import jwt
>>encoded = jwt.encode({’role’: 'admin’}, 'lol’, algorithm=’HS512')
>>encoded
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlIjoiYWRtaW4ifQ.y9GHxQbH70x_S8F_VPAjra_S-nQ9MsRnuvwWFGoIyKXKk8xCcMpYljN190KcV1qV6qLFTNrvg4Gwyv29OCjAWA'
Editor is loading...