Skip to main content
An app can switch between Bijection Auth, WorkOS AuthKit, Clerk, Auth0 or a custom provider. Keep app-owned user facts and business data keyed to their existing IDs. Each provider may give the same person a different verified principal, so record which new login belongs to each existing user.

Configure the destination provider

Add the destination issuer and its client to bijection/sign-in.ts and configure its browser sign-in and client token adapter. Use the app’s provider guide for exact issuer, audience and callback settings. If your app uses email invitations, set the email trust option on the new source when its verified tokens support the required claims.

Associate the new login with the existing user

Use an app-owned association from the new verified principal to the existing user ID, including user facts originally created by createUser. The new login’s PrincipalId is a random person:… ID the host keeps for that issuer and subject; functions never see the subject itself. An email verified in both systems can help find the candidate fact. Confirm the association with a sign-in to the original account or an administrator review before binding the new principal. Use that same confirmation path when the email is missing, shared, or ambiguous. Keep the principal as the lookup key after association, so a later email change keeps the same user ID. Never select or link a user from email supplied by the browser. Resolve the application user through this association on sign-in. Grant the corresponding access to the new principal and update any guards that compare a.as.id with the old identity.

Start using the new provider

Have users sign in through the new integration. When the app uses the new source, remove the retired issuer and browser adapter. If the retired issuer is Bijection Auth, remove its auth subtree from the app tree after the app has finished establishing its user associations. Existing application sessions are tied to their sign-in source; use a new login with the destination provider.