getExtraGitHubInfoCallback property
Callback that can be used with the access token to extract additional information from GitHub.
This callback is invoked after the GitHub account has been created. It runs on EVERY authentication attempt.
CRITICAL - Do NOT create these models in the callback:
- GitHubAccount - Breaks new account detection
- UserProfile - Interferes with automatic profile creation
- AuthUser - Already handled by the authentication flow
Creating these models will cause the authentication flow in GitHubIdp.login to fail or skip critical steps like user profile creation.
Safe usage: Store data in your own custom tables, linked by
GitHubAccountDetails.userIdentifier. Keep operations lightweight.
Implementation
final GetExtraGitHubInfoCallback? getExtraGitHubInfoCallback;