From 9093659b0a15bea2103e52b4e822c4871090c9a9 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 16 Sep 2022 18:37:09 +0200 Subject: [PATCH] Tweak error wording --- app/config.py | 2 +- app/indieauth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config.py b/app/config.py index f9c4ac7..84d0c49 100644 --- a/app/config.py +++ b/app/config.py @@ -213,6 +213,6 @@ def verify_csrf_token( logger.exception("Failed to verify CSRF token") raise HTTPException( status_code=403, - detail=f"The security token expired, {please_try_again}", + detail=f"The security token has expired, {please_try_again}", ) return None diff --git a/app/indieauth.py b/app/indieauth.py index 1b92a0d..f96e522 100644 --- a/app/indieauth.py +++ b/app/indieauth.py @@ -276,7 +276,7 @@ async def _check_access_token( if now() > access_token_info.created_at.replace(tzinfo=timezone.utc) + timedelta( seconds=access_token_info.expires_in ): - logger.info("Access token is expired") + logger.info("Access token has expired") return False, None return True, access_token_info