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

[BE] Protect Pages from Unauthorized Access #140

Open
parkerra opened this issue Sep 19, 2024 · 0 comments · May be fixed by #147
Open

[BE] Protect Pages from Unauthorized Access #140

parkerra opened this issue Sep 19, 2024 · 0 comments · May be fixed by #147
Assignees
Labels
Milestone

Comments

@parkerra
Copy link
Contributor

parkerra commented Sep 19, 2024

Overview

If a user is not logged in, they can still access any page, so they should automatically be redirected to the login screen. Caregivers can currently view admin pages, so they should be redirected if they try to access a page that they are unauthorized to view, which includes pages both for Admins and for other Caregivers. We can accomplish this using Next.js along with Firebase since Firebase stores the current user's authentication information in the auth object which we can import from db/firebase.

Don't hesitate to Slack me if you need any help or have any questions :D We can message or jump into a Huddle meeting as needed!

@parkerra parkerra added this to the Sprint 2 milestone Sep 19, 2024
@parkerra parkerra changed the title [BE] Protect Pages from Unauthorized Access [In Progress] [BE] Protect Pages from Unauthorized Access Sep 21, 2024
@parkerra parkerra linked a pull request Sep 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants