aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/CallbackPage.tsx
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-03-07 18:48:43 +0200
committerGravatar GitHub <[email protected]>2021-03-07 18:48:43 +0200
commit11151894702fab1a06e3dfe9eca43d4596b5290e (patch)
treec74483bd5327751ef54a486d7bdcf20eed418919 /src/pages/CallbackPage.tsx
parentAdd margin to bottom of captcha (diff)
parentRenables OAuth Button On Failure (diff)
Merge branch 'main' into hcaptcha
Diffstat (limited to 'src/pages/CallbackPage.tsx')
-rw-r--r--src/pages/CallbackPage.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/CallbackPage.tsx b/src/pages/CallbackPage.tsx
index fab2086..00feb76 100644
--- a/src/pages/CallbackPage.tsx
+++ b/src/pages/CallbackPage.tsx
@@ -7,11 +7,12 @@ export default function CallbackPage(): JSX.Element {
const params = new URLSearchParams(location.search);
const code = params.get("code");
+ const state = params.get("state");
if (!hasSent) {
setHasSent(true);
- window.opener.postMessage(code);
+ window.opener.postMessage({code: code, state: state});
}
- return <p>Code is {code}</p>;
+ return <div/>;
}