_
This commit is contained in:
parent
cfce83bb84
commit
c7f00a9dac
|
@ -62,14 +62,14 @@ spd4eADxTm2m0GR7bhVEIbYfc0aAzIoWDpVs4V3vmx+bdRbppFxV1aS/r0g=
|
||||||
header = {
|
header = {
|
||||||
'alg': 'RS256',
|
'alg': 'RS256',
|
||||||
'typ': 'JWT',
|
'typ': 'JWT',
|
||||||
'kid': '0d1bb0d7-45e4-445c-889e-57419470a570'
|
'kid': '1c8a5da7-527e-4bee-aa8d-aabda16c59ce'
|
||||||
}
|
}
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
**json_data,
|
**json_data,
|
||||||
'iat': int(datetime.now().timestamp()),
|
'iat': int(datetime.now().timestamp()),
|
||||||
'exp': int((datetime.now() + timedelta(minutes=10)).timestamp()),
|
'exp': int((datetime.now() + timedelta(minutes=10)).timestamp()),
|
||||||
'iss': 'https://ora.sh'
|
'iss': 'https://rick.roll'
|
||||||
}
|
}
|
||||||
|
|
||||||
return jwt.encode(payload, private_key, algorithm='RS256', headers=header)
|
return jwt.encode(payload, private_key, algorithm='RS256', headers=header)
|
Loading…
Reference in a new issue