Untitled

mail@pastecode.io avatar
unknown
python
3 years ago
249 B
1
Indexable
Never
>>import jwt
>>encoded = jwt.encode({’role’: 'admin’}, 'lol’, algorithm=’HS512')
>>encoded
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlIjoiYWRtaW4ifQ.y9GHxQbH70x_S8F_VPAjra_S-nQ9MsRnuvwWFGoIyKXKk8xCcMpYljN190KcV1qV6qLFTNrvg4Gwyv29OCjAWA'