Skip to content

Refactor Auth#87

Merged
danhill-stripe merged 2 commits intomainfrom
danhill/require-auth-uniform
May 8, 2026
Merged

Refactor Auth#87
danhill-stripe merged 2 commits intomainfrom
danhill/require-auth-uniform

Conversation

@danhill-stripe
Copy link
Copy Markdown
Contributor

Consolidates all the auth checks into a single middleware/function

cc @raubrey-stripe @kreese-stripe as some of the other branches might need updating once we merge this

Use middleware: [requireAuth] on update, cancel, list, add, pay.
Use requireAuthGuard(c) inline for generator commands (create,
request-approval, retrieve) due to incur limitation with middleware
+ async generators + c.error() return values.

Committed-By-Agent: claude
@danhill-stripe danhill-stripe requested a review from a team as a code owner May 8, 2026 15:20
Copy link
Copy Markdown
Contributor

@raubrey-stripe raubrey-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great; let's sequence this with this other auth change? #81

Looks great.

@danhill-stripe danhill-stripe merged commit cd53dbe into main May 8, 2026
5 checks passed
@danhill-stripe danhill-stripe deleted the danhill/require-auth-uniform branch May 8, 2026 16:18
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 this pull request may close these issues.

2 participants