Adds authentication and authorization features#40
Merged
rolandboon merged 1 commit intomainfrom Jan 25, 2026
Merged
Conversation
440b7df to
8a62394
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
+ Coverage 96.87% 96.98% +0.10%
==========================================
Files 57 61 +4
Lines 3044 3179 +135
Branches 808 856 +48
==========================================
+ Hits 2949 3083 +134
- Misses 95 96 +1
🚀 New features to boost your workflow:
|
5c84454 to
5c34f98
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
5c34f98 to
b21dcfd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
better-authfor authentication managementcreateAuthMiddlewarefor session validationdefineRoleAbilitiesfor secure, declarative permission definitionsNote
Introduces a complete authentication and authorization stack and wires it into routing and query utilities.
createAuthMiddleware,createBetterAuthProvider, CASL ability utilities (createAbilityFactory,defineRoleAbilities,assertCan,can,subject), and typedAuthUser/AuthSessionauthorizeoption toroute()and Hono context augmentation (user,session,ability,isAuthenticated)registerCaslandwithCaslScope(ability, action, subject)for list-query scopingsrc/index.ts; adjustslist-query/caslexportsbetter-auth,@casl/ability; updates lockfile; addstypecheckscript; bumpshonodev-plans/jobs.md(internal plan)Written by Cursor Bugbot for commit b21dcfd. This will update automatically on new commits. Configure here.