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

Set up staff protected routes #129

Open
5 tasks
John-Moore-UOA opened this issue Jul 2, 2024 · 0 comments · May be fixed by #158
Open
5 tasks

Set up staff protected routes #129

John-Moore-UOA opened this issue Jul 2, 2024 · 0 comments · May be fixed by #158
Assignees

Comments

@John-Moore-UOA
Copy link
Contributor

Description:

Make Enums for user and staff. then make protected route for staff and user

New enums

frontend -> enum(new folder) -> route enums.ts

const AccessLevel = {
USER: "user",
STAFF: "staff",
};

export default AccessLevel;

Protected Route

frontend -> firebase -> ProtectedRoute.tsx
frontend -> firebase -> staffAuth

Basically just do this from VPS project: https://github.com/UoaWDCC/VPS/tree/master/frontend/src/firebase

Definition of Done:

  • AC met
  • Applicable tests written
  • Applicable documentation is written in GH wiki
  • PR reviewed
  • Merged into main/feature branch

Notes / Links

https://github.com/UoaWDCC/VPS/tree/master/frontend/src/firebase

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 a pull request may close this issue.

2 participants