Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from Data_Fetching_and_Rendering import fetch_org_urn
|
|
6 |
token_received = {"status": False, "token": "", "client_id": ""}
|
7 |
|
8 |
# 1) this will be called by POST
|
9 |
-
def receive_token(accessToken:
|
10 |
try:
|
11 |
token_dict = json.loads(accessToken.replace("'", '"')) # crude but works if trusted input
|
12 |
except json.JSONDecodeError as e:
|
|
|
6 |
token_received = {"status": False, "token": "", "client_id": ""}
|
7 |
|
8 |
# 1) this will be called by POST
|
9 |
+
def receive_token(accessToken: dict, client_id: str):
|
10 |
try:
|
11 |
token_dict = json.loads(accessToken.replace("'", '"')) # crude but works if trusted input
|
12 |
except json.JSONDecodeError as e:
|