getExtraMicrosoftInfoCallback property

GetExtraMicrosoftInfoCallback? getExtraMicrosoftInfoCallback
final

Callback that can be used with the access token to extract additional information from Microsoft Graph API.

This callback is invoked during MicrosoftIdpUtils.fetchAccountDetails, before the system determines if the user is new or returning. It runs on EVERY authentication attempt.

CRITICAL - Do NOT create these models in the callback:

Creating these models will cause the authentication flow in MicrosoftIdp.login to fail or skip critical steps like user profile creation.

Safe usage: Store data in your own custom tables, linked by MicrosoftAccountDetails.userIdentifier. Keep operations lightweight.

Implementation

final GetExtraMicrosoftInfoCallback? getExtraMicrosoftInfoCallback;