From b4415a0273578a3af3c252b05a09748c187bd59e Mon Sep 17 00:00:00 2001 From: nasubi Date: Sat, 15 Jun 2024 23:06:29 +0900 Subject: [PATCH 1/2] =?UTF-8?q?.env=E3=81=AE=E7=94=A8=E6=84=8F=E3=81=A8But?= =?UTF-8?q?ton=E3=82=92=E7=94=A8=E6=84=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/auth/login.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/auth/login.tsx b/src/pages/auth/login.tsx index 94e1c03..7527897 100644 --- a/src/pages/auth/login.tsx +++ b/src/pages/auth/login.tsx @@ -6,7 +6,12 @@ export default function Page(): ReactElement { こちらログイン画面になります + + + From 9ef53fde8c16a89fe4e573d3c83fd275532e9f5b Mon Sep 17 00:00:00 2001 From: nasubi Date: Sat, 15 Jun 2024 23:15:36 +0900 Subject: [PATCH 2/2] =?UTF-8?q?/auth/callback=E3=81=A7code=E3=82=92?= =?UTF-8?q?=E7=A2=BA=E8=AA=8D=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/auth/callback.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/auth/callback.tsx b/src/pages/auth/callback.tsx index e21b404..9eac4ff 100644 --- a/src/pages/auth/callback.tsx +++ b/src/pages/auth/callback.tsx @@ -2,12 +2,13 @@ import { Flex, Text } from "@radix-ui/themes"; import { type ReactElement } from "react"; export default function Page(): ReactElement { - const params = new URLSearchParams(window.location.search); - console.log(params); + const url = new URLSearchParams(window.location.search); + const code = url.get("code"); + console.log(code); return ( こちらCallbackになります - + code: {code} ); }