Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion slack_bolt/authorization/async_authorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ async def __call__(
installation.user_token,
)

if installation.user_refresh_token is not None:
if (
installation.user_refresh_token is not None
or installation.bot_refresh_token is not None
):
if self.token_rotator is None:
raise BoltError(self._config_error_message)
refreshed = await self.token_rotator.perform_token_rotation(
Expand Down
5 changes: 4 additions & 1 deletion slack_bolt/authorization/authorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def __call__(
installation.bot_token,
installation.user_token,
)
if installation.user_refresh_token is not None:
if (
installation.user_refresh_token is not None
or installation.bot_refresh_token is not None
):
if self.token_rotator is None:
raise BoltError(self._config_error_message)
refreshed = self.token_rotator.perform_token_rotation(
Expand Down