Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
xtekky committed Apr 25, 2023
1 parent cfce83b commit c7f00a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ora/_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def do_jwt(json_data: dict):
header = {
'alg': 'RS256',
'typ': 'JWT',
'kid': '0d1bb0d7-45e4-445c-889e-57419470a570'
'kid': '1c8a5da7-527e-4bee-aa8d-aabda16c59ce'
}

payload = {
**json_data,
'iat': int(datetime.now().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)
File renamed without changes.

0 comments on commit c7f00a9

Please sign in to comment.