File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,10 @@ async def __call__(
189189 installation .user_token ,
190190 )
191191
192- if installation .user_refresh_token is not None :
192+ if (
193+ installation .user_refresh_token is not None
194+ or installation .bot_refresh_token is not None
195+ ):
193196 if self .token_rotator is None :
194197 raise BoltError (self ._config_error_message )
195198 refreshed = await self .token_rotator .perform_token_rotation (
Original file line number Diff line number Diff line change @@ -186,7 +186,10 @@ def __call__(
186186 installation .bot_token ,
187187 installation .user_token ,
188188 )
189- if installation .user_refresh_token is not None :
189+ if (
190+ installation .user_refresh_token is not None
191+ or installation .bot_refresh_token is not None
192+ ):
190193 if self .token_rotator is None :
191194 raise BoltError (self ._config_error_message )
192195 refreshed = self .token_rotator .perform_token_rotation (
You can’t perform that action at this time.
0 commit comments