File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -192,17 +192,17 @@ def jwt_token() -> str:
192
192
.stdout .strip ()
193
193
.decode ()
194
194
)
195
- print ( auth_token )
195
+
196
196
custom_token = auth .create_custom_token ("a-user-id" ).decode ("UTF-8" )
197
- print ( custom_token )
198
- # adapter = HTTPAdapter(max_retries=retry_strategy)
197
+
198
+ adapter = HTTPAdapter (max_retries = retry_strategy )
199
199
200
200
client = requests .session ()
201
- # client.mount("https://", adapter)
201
+ client .mount ("https://" , adapter )
202
202
203
203
resp = client .post (
204
204
f"https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key={ IDP_KEY } " ,
205
- data = json .dumps ({"token" : auth_token , "returnSecureToken" : True }),
205
+ data = json .dumps ({"token" : custom_token , "returnSecureToken" : True }),
206
206
)
207
207
response = resp .json ()
208
208
assert "error" not in response .keys ()
You can’t perform that action at this time.
0 commit comments