Ability to identify which email/identity was used during authentication for linked accounts

Feature: Access to Secondary User Email in Linked Accounts

Description: When using post-login actions with linked accounts, there’s currently no way to determine which email address was used for the current login session. After linking accounts, I can access the primary user’s email and the full identities array, but I cannot identify which specific identity was used to authenticate in the current session. This makes it difficult to implement certain security flows and personalization based on the actual credentials used.

Use-case: I’m building an application that links multiple user accounts to a primary account. For security and audit purposes, I need to know which specific credentials were used for each login attempt. This would improve my experience by allowing me to:

  1. Properly log authentication events with the actual email used
  2. Display appropriate UI elements based on the login method
  3. Apply different security policies depending on which identity was used to authenticate
  4. Track usage patterns across different login methods for the same user

Hi @mourya.andey,

Thanks for creating this feedback request!

Please make sure to upvote this request so we can prioritize implementation based on the highest votes!

Cheers,
Rueben