Skip to content

fix(user): use branded type for Macroid string with validation#809

Merged
synoet merged 3 commits intomainfrom
synoet/macro-id-branded-type
Jan 6, 2026
Merged

fix(user): use branded type for Macroid string with validation#809
synoet merged 3 commits intomainfrom
synoet/macro-id-branded-type

Conversation

@synoet
Copy link
Copy Markdown
Contributor

@synoet synoet commented Jan 6, 2026

authentication_service will silently fail when you pass it an invalid user_id. This is already fixed. But in general we should
be more careful about passing around arbitrary strings and claiming that they are valid user ids.

Maybe zod would be a better use case for this. But for now I think this is sufficient.

@synoet synoet requested a review from a team as a code owner January 6, 2026 23:08
@synoet synoet requested review from dev-rb, gbirman and sedson January 6, 2026 23:11
@synoet synoet merged commit 7fe161d into main Jan 6, 2026
19 checks passed
@synoet synoet deleted the synoet/macro-id-branded-type branch January 6, 2026 23:43
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 this pull request may close these issues.

2 participants