Saving the test file just because.
This commit is contained in:
15
tests/gen_test_jwt.py
Normal file
15
tests/gen_test_jwt.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import jwt
|
||||
import time
|
||||
|
||||
JWT_KEY = 'EHmSXZFKfMEW65E8kxCKmQ'
|
||||
AGENT_API_KEY = 'IDF68Em5X4HTZlswRNgepQ'
|
||||
ACCOUNT_ID_RANDOM = 'nqOzejLCDXM'
|
||||
|
||||
payload = {
|
||||
'iat': time.time(),
|
||||
'eat': time.time() + 300,
|
||||
'account_id': ACCOUNT_ID_RANDOM
|
||||
}
|
||||
|
||||
token = jwt.encode(payload, JWT_KEY, algorithm='HS256')
|
||||
print(token)
|
||||
Reference in New Issue
Block a user