From 960d0dff432e2a8459d0c528fba54091e0ec907f Mon Sep 17 00:00:00 2001 From: Henrikh Kantuni Date: Mon, 27 Dec 2021 09:59:02 -0500 Subject: [PATCH 1/3] Avoid visiting login page again on back button click --- examples/auth/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/auth/src/App.tsx b/examples/auth/src/App.tsx index 47e230ee2..f97ce5e90 100644 --- a/examples/auth/src/App.tsx +++ b/examples/auth/src/App.tsx @@ -136,7 +136,7 @@ function RequireAuth({ children }: { children: JSX.Element }) { // trying to go to when they were redirected. This allows us to send them // along to that page after they login, which is a nicer user experience // than dropping them off on the home page. - return ; + return ; } return children; From 2d4ff63bbe2169fb38481e2d272462bffc22005c Mon Sep 17 00:00:00 2001 From: Henrikh Kantuni Date: Mon, 27 Dec 2021 10:34:34 -0500 Subject: [PATCH 2/3] Update contributors.yml --- contributors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.yml b/contributors.yml index e419763c5..acda57871 100644 --- a/contributors.yml +++ b/contributors.yml @@ -23,3 +23,4 @@ - turansky - underager - vijaypushkin +- kantuni From 64e8a7acd6febadb5cd89b021a71916b244aaf64 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Mon, 27 Dec 2021 13:41:37 -0500 Subject: [PATCH 3/3] Update examples/auth/src/App.tsx --- examples/auth/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/auth/src/App.tsx b/examples/auth/src/App.tsx index f97ce5e90..ad277f632 100644 --- a/examples/auth/src/App.tsx +++ b/examples/auth/src/App.tsx @@ -136,7 +136,7 @@ function RequireAuth({ children }: { children: JSX.Element }) { // trying to go to when they were redirected. This allows us to send them // along to that page after they login, which is a nicer user experience // than dropping them off on the home page. - return ; + return ; } return children;