Migrating from IOAuthData to IExternalLinkedAuthentication

We are migrating our SSO implementation from IOAuthClient to IExternalLinkedAuthentication.

The user is successfully redirected to the external provider, and the authentication flow completes successfully. On the callback, I am calling the SetLinkedUserData method, but the user is not getting logged in afterward.

Any help or guidance would be greatly appreciated.