Misleading or incorrect user identity types
Closed this issue · 0 comments
whaaaley commented
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
UserIdentiy interface does not match actual output. From the supabase types.d.ts we can see:
export interface UserIdentity {
id: string;
user_id: string;
identity_data?: {
[key: string]: any;
};
identity_id: string;
provider: string;
created_at?: string;
last_sign_in_at?: string;
updated_at?: string;
}However, actual output from user.listIdentities shows the following:
[
{
"id": "3bd7741b-ef83-4f17-88ab-912399fc1ff9",
"email": "dustin@onclickcoop.dev",
"created_at": "2025-08-23T06:40:33.237343Z",
"updated_at": "2025-08-23T06:40:33.237343Z"
}
]To Reproduce
const { data, error } = await supabase.auth.getUser(opts.ctx.token)
console.log(data.user.identities)
Expected behavior
Correct types or correct output
Screenshots
System information
- Version of supabase-js: npm:@supabase/supabase-js@^2.49.9
- Version of supabase-js: npm:@supabase/supabase-js@^2.56.0