diff --git a/packages/keychain/src/pages/slot/session/index.tsx b/packages/keychain/src/pages/slot/session/index.tsx index 52d1c47a2..ddbb2ed42 100644 --- a/packages/keychain/src/pages/slot/session/index.tsx +++ b/packages/keychain/src/pages/slot/session/index.tsx @@ -44,7 +44,7 @@ function CreateSession() { headers.append("Content-Type", "application/json"); fetch(url, { - body: session, + body: JSON.stringify(session), headers, method: "POST", }) @@ -57,7 +57,7 @@ function CreateSession() { console.error("failed to call the callback url", e); router.replace(`/slot/auth/failure`); }); - }, [router, queries.callback_uri, controller.account]); + }, [router, queries.callback_uri, controller]); // Handler when user clicks the Create button const onConnect = useCallback(