From 143b60dd0b803fa40bd889d8ae2474926b7084a2 Mon Sep 17 00:00:00 2001 From: Adrian <107351903+6lr61@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:23:24 +0200 Subject: [PATCH] feat: set pop-up window size to match --- src/contexts/AuthStateProvider.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/contexts/AuthStateProvider.tsx b/src/contexts/AuthStateProvider.tsx index b7facd9..a9091f0 100644 --- a/src/contexts/AuthStateProvider.tsx +++ b/src/contexts/AuthStateProvider.tsx @@ -23,7 +23,11 @@ export default function AuthStateProvider({ url.searchParams.set("response_type", "token"); url.searchParams.set("force_verify", "true"); - void window.open(url, undefined, "popup=yes"); + void window.open( + url, + undefined, + "popup=yes,innerWidth=480,innerHeight=784" + ); }, []); const handleMessage = useCallback(