chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Run sample
|
||||
|
||||
## Set up environment
|
||||
|
||||
```sh
|
||||
python -m venv
|
||||
source ./venv/bin/activate
|
||||
```
|
||||
|
||||
## Install dependencies
|
||||
|
||||
```sh
|
||||
pip install PyJWT
|
||||
```
|
||||
|
||||
## Run code
|
||||
|
||||
```sh
|
||||
python lab.py
|
||||
```
|
||||
|
||||
You should see output similar to:
|
||||
|
||||
```text
|
||||
Encoded JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlVzZXIgVXNlcnNvbiIsImFkbWluIjp0cnVlLCJpYXQiOjE3NTkxNjgzMDEsImV4cCI6MTc1OTE3MTkwMX0.tz0UYNNtGVC61DWjVDF8xlhpNkp5XBtxmQH3m_RNwe8
|
||||
✅ Token is valid.
|
||||
Decoded claims:
|
||||
sub: 1234567890
|
||||
name: User Userson
|
||||
admin: True
|
||||
iat: 1759168301
|
||||
exp: 1759171901
|
||||
```
|
||||
Reference in New Issue
Block a user