diff --git a/app/components/auth.tsx b/app/components/auth.tsx
index 1ca83dcd..9a5b0c65 100644
--- a/app/components/auth.tsx
+++ b/app/components/auth.tsx
@@ -15,6 +15,7 @@ export function AuthPage() {
const access = useAccessStore();
const goHome = () => navigate(Path.Home);
+ const resetAccessCode = () => access.updateCode(""); // Reset access code to empty string
useEffect(() => {
if (getClientConfig()?.isApp) {
@@ -48,7 +49,10 @@ export function AuthPage() {
type="primary"
onClick={goHome}
/>
-
+ {
+ resetAccessCode();
+ goHome();
+ }} />
);