Seth commited on
Commit ·
5fa5fa1
1
Parent(s): f1ef860
update
Browse files- backend/app/main.py +2 -1
backend/app/main.py
CHANGED
|
@@ -1056,11 +1056,12 @@ async def create_unipile_linkedin_hosted_link(
|
|
| 1056 |
t.db.add(state)
|
| 1057 |
t.db.commit()
|
| 1058 |
|
|
|
|
| 1059 |
payload = {
|
| 1060 |
"type": "create",
|
| 1061 |
"providers": ["LINKEDIN"],
|
| 1062 |
"api_url": UNIPILE_API_BASE,
|
| 1063 |
-
"expiresOn":
|
| 1064 |
"notify_url": f"{origin}/api/unipile/linkedin/hosted-callback",
|
| 1065 |
"success_redirect_url": f"{origin}/?tab=linkedin-connected",
|
| 1066 |
"failure_redirect_url": f"{origin}/?tab=linkedin-connect-failed",
|
|
|
|
| 1056 |
t.db.add(state)
|
| 1057 |
t.db.commit()
|
| 1058 |
|
| 1059 |
+
expires_iso = expires_at.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"
|
| 1060 |
payload = {
|
| 1061 |
"type": "create",
|
| 1062 |
"providers": ["LINKEDIN"],
|
| 1063 |
"api_url": UNIPILE_API_BASE,
|
| 1064 |
+
"expiresOn": expires_iso,
|
| 1065 |
"notify_url": f"{origin}/api/unipile/linkedin/hosted-callback",
|
| 1066 |
"success_redirect_url": f"{origin}/?tab=linkedin-connected",
|
| 1067 |
"failure_redirect_url": f"{origin}/?tab=linkedin-connect-failed",
|