File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ async def perform_bot_token_rotation(
9898 refreshed_bot = Bot (** bot .to_dict ())
9999 refreshed_bot .bot_token = refresh_response .get ("access_token" )
100100 refreshed_bot .bot_refresh_token = refresh_response .get ("refresh_token" )
101- refreshed_bot .bot_token_expires_at = int (time ()) + int (refresh_response . get (
102- "expires_in"
103- ))
101+ refreshed_bot .bot_token_expires_at = int (time ()) + int (
102+ refresh_response . get ( "expires_in" )
103+ )
104104 return refreshed_bot
105105
106106 except SlackApiError as e :
@@ -141,9 +141,9 @@ async def perform_user_token_rotation(
141141 refreshed_installation .user_refresh_token = refresh_response .get (
142142 "refresh_token"
143143 )
144- refreshed_installation .user_token_expires_at = int (
145- time ( )
146- ) + int ( refresh_response . get ( "expires_in" ))
144+ refreshed_installation .user_token_expires_at = int (time ()) + int (
145+ refresh_response . get ( "expires_in" )
146+ )
147147 return refreshed_installation
148148
149149 except SlackApiError as e :
Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ def perform_bot_token_rotation(
9090 refreshed_bot = Bot (** bot .to_dict ())
9191 refreshed_bot .bot_token = refresh_response .get ("access_token" )
9292 refreshed_bot .bot_refresh_token = refresh_response .get ("refresh_token" )
93- refreshed_bot .bot_token_expires_at = int (time ()) + int (refresh_response . get (
94- "expires_in"
95- ))
93+ refreshed_bot .bot_token_expires_at = int (time ()) + int (
94+ refresh_response . get ( "expires_in" )
95+ )
9696 return refreshed_bot
9797
9898 except SlackApiError as e :
@@ -134,9 +134,9 @@ def perform_user_token_rotation(
134134 refreshed_installation .user_refresh_token = refresh_response .get (
135135 "refresh_token"
136136 )
137- refreshed_installation .user_token_expires_at = int (
138- time ( )
139- ) + int ( refresh_response . get ( "expires_in" ))
137+ refreshed_installation .user_token_expires_at = int (time ()) + int (
138+ refresh_response . get ( "expires_in" )
139+ )
140140 return refreshed_installation
141141
142142 except SlackApiError as e :
Original file line number Diff line number Diff line change @@ -2173,7 +2173,7 @@ async def oauth_v2_exchange(
21732173 Args:
21742174 token: The legacy xoxb or xoxp token being migrated to use token rotation.
21752175 client_id: Issued when you created your application.
2176- client_secret:Issued when you created your application.
2176+ client_secret: Issued when you created your application.
21772177 """
21782178 kwargs .update (
21792179 {"client_id" : client_id , "client_secret" : client_secret , "token" : token }
Original file line number Diff line number Diff line change @@ -2046,7 +2046,7 @@ def oauth_v2_exchange(
20462046 Args:
20472047 token: The legacy xoxb or xoxp token being migrated to use token rotation.
20482048 client_id: Issued when you created your application.
2049- client_secret:Issued when you created your application.
2049+ client_secret: Issued when you created your application.
20502050 """
20512051 kwargs .update (
20522052 {"client_id" : client_id , "client_secret" : client_secret , "token" : token }
Original file line number Diff line number Diff line change @@ -2167,7 +2167,7 @@ def oauth_v2_exchange(
21672167 Args:
21682168 token: The legacy xoxb or xoxp token being migrated to use token rotation.
21692169 client_id: Issued when you created your application.
2170- client_secret:Issued when you created your application.
2170+ client_secret: Issued when you created your application.
21712171 """
21722172 kwargs .update (
21732173 {"client_id" : client_id , "client_secret" : client_secret , "token" : token }
You can’t perform that action at this time.
0 commit comments