Skip to content

Commit 0ebcbde

Browse files
authored
Fix #409 Custom token rotation expiration time does not work if installation_store is passed at top level (#436)
1 parent f70e1f4 commit 0ebcbde

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

slack_bolt/app/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ def message_hello(message, say):
270270
)
271271
if self._authorize is None:
272272
self._authorize = self._oauth_flow.settings.authorize
273+
self._authorize.token_rotation_expiration_minutes = (
274+
oauth_settings.token_rotation_expiration_minutes
275+
)
273276

274277
if (
275278
self._installation_store is not None or self._authorize is not None

slack_bolt/app/async_app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ async def message_hello(message, say): # async function
288288
)
289289
if self._async_authorize is None:
290290
self._async_authorize = self._async_oauth_flow.settings.authorize
291+
self._async_authorize.token_rotation_expiration_minutes = (
292+
oauth_settings.token_rotation_expiration_minutes
293+
)
291294

292295
if (
293296
self._async_installation_store is not None

0 commit comments

Comments
 (0)