Skip to content

Conversation

@christianhelp
Copy link
Contributor

@christianhelp christianhelp commented Jul 25, 2025

Why

Users would be redirected to their dashboard instead of the the protected route they wished to navigate to after signing in.

What

  • Added middleware logic to redirect unauthenticated users to sign-in and keep track of the desired route they wish to be directed to after signing in
  • Allowed a user to sign out while in between signing in and onboarding
  • Updated the UI to better reflect the change above by rendering a "complete registration" button instead of the normal sign in and sign up buttons

Satisfies

#153

NOTE

Environment variables for Clubkit have been modified, but NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL and NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL should be removed from local .env files and from Portal's environment variables.

@christianhelp christianhelp linked an issue Jul 25, 2025 that may be closed by this pull request
@joshuasilva414 joshuasilva414 merged commit 4ab0fe9 into dev Jul 26, 2025
2 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.

Fix Sign-in redirects in Clubkit

3 participants