Skip to content

Fix identity matching for cast provider attributes - #24

Merged
stevebauman merged 2 commits into
masterfrom
fix/enum-provider-names
Nov 9, 2026
Merged

stevebauman merged 2 commits into
masterfrom
fix/enum-provider-names

Conversation

@stevebauman

@stevebauman stevebauman commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

When provider_name or provider_id is cast on the user model, Bartender can reject valid returning users. Backed enums cannot be compared directly with strings, and integer casts can remove leading zeros from provider IDs. This also affects returning users whose provider email has changed.

I've updated both identity checks to compare the raw stored provider name and ID. The model's casts remain intact on the returned user, and conflicting identities are still rejected.

@stevebauman stevebauman changed the title Fix identity matching for enum-cast provider names Fix identity matching for cast provider attributes Nov 9, 2026
@stevebauman
stevebauman merged commit 6d6a0ac into master Nov 9, 2026
29 checks passed
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.

1 participant