Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirects Middleware #125

Open
joseph082 opened this issue Nov 16, 2023 · 0 comments
Open

Redirects Middleware #125

joseph082 opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@joseph082
Copy link
Collaborator

joseph082 commented Nov 16, 2023

Describe the solution you'd like

Prevent people from accessing pages in account setup flow before and after they're supposed to (e.g., people shouldn't be able to access /account-type after they've already selected their account type).

Prevent Researchers from accessing Student pages and API routes and vice versa.

Redirect students accessing /profile to their profile page. Use a supabase query for prod since Prisma doesn't support edge yet.

The /about page should redirect to the home page if a user is logged in. Allow signed out users to access the /about page.

@joseph082 joseph082 added the enhancement New feature or request label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants