-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat: auth middleware #90
Conversation
Implement KV store checks and Add session expiry validation
Implement KV store checks and Add session expiry validation
Role-based service VS Seperate Routes | Role-Based Service | - Centralized logic | Separate Routes | - Clear middleware chain The middleware approach (Option 2) is particularly powerful because: There are other options but I didn't really think single route was a good idea as we'd probably end up having to refactor it later. |
…nteer with own id can edit profile
… check if the profile is valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 threads left to resolve, otherwise looks good to me.
NOTE: All of these are non-blocking and/or require more discussion, so I'm approving this PR for us to move forward and resolve those issues separately.
This reverts commit 30cf258.
Summary
organizer
admin
orvolunteer
with own idadmin
volunteer
volunteer
admin
organizer
admin
Tests
Additional information
createRoute()
of zod-openapi