Configure the destination provider
Add the destination issuer and its client tobijection/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 bycreateUser. 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 itsauth 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.