diff options
author | 2021-03-07 18:48:43 +0200 | |
---|---|---|
committer | 2021-03-07 18:48:43 +0200 | |
commit | 11151894702fab1a06e3dfe9eca43d4596b5290e (patch) | |
tree | c74483bd5327751ef54a486d7bdcf20eed418919 /src/pages/CallbackPage.tsx | |
parent | Add margin to bottom of captcha (diff) | |
parent | Renables OAuth Button On Failure (diff) |
Merge branch 'main' into hcaptcha
Diffstat (limited to 'src/pages/CallbackPage.tsx')
-rw-r--r-- | src/pages/CallbackPage.tsx | 5 |
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/>; } |