diff --git a/src/pages/api/auth.astro b/src/pages/api/auth.astro index 44add1c..ba9f176 100644 --- a/src/pages/api/auth.astro +++ b/src/pages/api/auth.astro @@ -3,17 +3,19 @@ import Layout from "../../layouts/Layout.astro" import { GET } from "./auth" const auth = await GET(Astro.url.origin) - -const receiveMessage = (message: MessageEvent) => { - window.opener.postMessage( - "authorization:github:${status}:${JSON.stringify(content)}", - message.origin - ) - window.removeEventListener("message", receiveMessage, false) -} -window.addEventListener("message", receiveMessage, false) - -window.opener.postMessage("authorizing:github", "*") --- + +