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:
- Properly log authentication events with the actual email used
- Display appropriate UI elements based on the login method
- Apply different security policies depending on which identity was used to authenticate
- Track usage patterns across different login methods for the same user