Skip to content

Commit

Permalink
fix: unverified request due to invalid iat (#462)
Browse files Browse the repository at this point in the history
* fix: unverified request due to invalid iat
- raised the leeway to 1

* chore(github-actions): set codecov token
  • Loading branch information
alexhook authored Apr 9, 2024
1 parent 8703175 commit 6b27924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}

lint:
name: Lint
Expand Down
2 changes: 1 addition & 1 deletion pybotx/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ def _verify_request(self, headers: Mapping[str, str]) -> None: # noqa: WPS238
key=bot_account.secret_key,
algorithms=decode_algorithms,
issuer=bot_account.host,
leeway=0.5,
leeway=1,
options={
"verify_aud": False,
},
Expand Down

0 comments on commit 6b27924

Please sign in to comment.