Skip to content

fix: ensure identities are returned in a consistent order across DB engines#2465

Merged
fadymak merged 1 commit intomasterfrom
fm/auth-1155-identities-ordering
Apr 7, 2026
Merged

fix: ensure identities are returned in a consistent order across DB engines#2465
fadymak merged 1 commit intomasterfrom
fm/auth-1155-identities-ordering

Conversation

@fadymak
Copy link
Copy Markdown
Contributor

@fadymak fadymak commented Apr 7, 2026

Returns identities in a consistent order to work across DB engines.

Previously, we were relying on Postgres' implicit ordering which is considered an implementation detail and does not carry across to Oriole DB (https://github.com/supabase/auth/actions/runs/24069608972/job/70203207256?pr=2464).

Although we don't have an index on created_at, this should be fine since a user is unlikely to have many indexes and FindProvidersByUser filters by the user_id first.

Related: #2464

@fadymak fadymak requested a review from a team as a code owner April 7, 2026 08:34
@fadymak fadymak merged commit e49a3e5 into master Apr 7, 2026
8 checks passed
@fadymak fadymak deleted the fm/auth-1155-identities-ordering branch April 7, 2026 16:57
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