Skip to content

Conversation

@hexawulf
Copy link
Owner

This commit addresses two issues:

  1. A 404 error occurring when you were redirected to /login after authentication.
    • App.tsx now handles the /login route:
      • Authenticated users are redirected from /login to / (dashboard).
      • Unauthenticated users are directed to a new SignInTriggerPage
        component that automatically initiates the signIn() process from
        AuthContext.
  2. The main "Sign In / Sign Up" button on PublicHome.tsx was not
    triggering the Google authentication flow.
    • The button in PublicHome.tsx now correctly calls the signIn()
      function from AuthContext instead of linking to /login.

These changes should improve the login flow and ensure the primary call to action on the public page works as intended.

google-labs-jules bot and others added 2 commits May 26, 2025 09:37
This commit addresses two issues:
1.  A 404 error occurring when you were redirected to `/login` after
    authentication.
    -   `App.tsx` now handles the `/login` route:
        -   Authenticated users are redirected from `/login` to `/` (dashboard).
        -   Unauthenticated users are directed to a new `SignInTriggerPage`
            component that automatically initiates the `signIn()` process from
            `AuthContext`.
2.  The main "Sign In / Sign Up" button on `PublicHome.tsx` was not
    triggering the Google authentication flow.
    -   The button in `PublicHome.tsx` now correctly calls the `signIn()`
        function from `AuthContext` instead of linking to `/login`.

These changes should improve the login flow and ensure the primary call to action on the public page works as intended.
@hexawulf hexawulf merged commit 0d91934 into main May 26, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants