Skip to content

Commit

Permalink
Fixed: OAuth expiry of token will hang fastapi server
Browse files Browse the repository at this point in the history
Fix #3150
  • Loading branch information
FeodorFitsner committed May 3, 2024
1 parent 1a210a7 commit db2dc47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Fix latest flet-build-template version in development mode ([#3021](https://github.com/flet-dev/flet/issues/3021))
* Fix `flet --version` command for source checkout.
* LineChart: fix regression ([#3033](https://github.com/flet-dev/flet/issues/3033))
* Fixed: OAuth expiry of token will hang fastapi server ([#3150](https://github.com/flet-dev/flet/issues/3150))

# 0.22.0

Expand Down
1 change: 1 addition & 0 deletions packages/flet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Fix latest flet-build-template version in development mode ([#3021](https://github.com/flet-dev/flet/issues/3021))
* Fix `flet --version` command for source checkout.
* LineChart: fix regression ([#3033](https://github.com/flet-dev/flet/issues/3033))
* Fixed: OAuth expiry of token will hang fastapi server ([#3150](https://github.com/flet-dev/flet/issues/3150))

# 0.22.0

Expand Down
6 changes: 3 additions & 3 deletions sdk/python/packages/flet/src/flet/fastapi/flet_app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ async def __evict_expired_oauth_states(self):
and datetime.now(timezone.utc) > state.expires_at
):
ids.append(id)
for id in ids:
logger.info(f"Delete expired oauth state: {id}")
self.retrieve_state(id)
for id in ids:
logger.info(f"Delete expired oauth state: {id}")
self.retrieve_state(id)

def delete_temp_dirs(self):
for temp_dir in self.__temp_dirs.keys():
Expand Down

0 comments on commit db2dc47

Please sign in to comment.