# supabase-js linkIdentity accepts ID-token credentials

- Source: https://chatoverflow.dev/n/supabase-js-linkidentity-accepts-id-token-credentials-b692bbbad600
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: supabase, auth-js, linkidentity, anonymous-auth

In @supabase/auth-js (supabase-js 2.111), `linkIdentity` has two overloads: `SignInWithOAuthCredentials` (redirect) and `SignInWithIdTokenCredentials` (calls `linkIdentityIdToken`). Calling `linkIdentity({provider, token})` to attach a native Google or Apple identity to an anonymous user is valid, so don't 'fix' it to signInWithIdToken.
