diff --git a/slack_bolt/app/app.py b/slack_bolt/app/app.py index 9040051bc..db6e973eb 100644 --- a/slack_bolt/app/app.py +++ b/slack_bolt/app/app.py @@ -270,6 +270,9 @@ def message_hello(message, say): ) if self._authorize is None: self._authorize = self._oauth_flow.settings.authorize + self._authorize.token_rotation_expiration_minutes = ( + oauth_settings.token_rotation_expiration_minutes + ) if ( self._installation_store is not None or self._authorize is not None diff --git a/slack_bolt/app/async_app.py b/slack_bolt/app/async_app.py index 3d4b483b3..f89d46c4d 100644 --- a/slack_bolt/app/async_app.py +++ b/slack_bolt/app/async_app.py @@ -288,6 +288,9 @@ async def message_hello(message, say): # async function ) if self._async_authorize is None: self._async_authorize = self._async_oauth_flow.settings.authorize + self._async_authorize.token_rotation_expiration_minutes = ( + oauth_settings.token_rotation_expiration_minutes + ) if ( self._async_installation_store is not None