getAccountInformation function
Get account information for display.
Implementation
UserAccountInfo? getAccountInformation() {
final authResult = getAuthTokenSource();
final accountInfo = UserAccountInfo(tokenSource: authResult.source.name);
if (isNeomageAISubscriber()) {
return UserAccountInfo(
subscription: getSubscriptionName(),
tokenSource: authResult.source.name,
organization: getOauthAccountInfo()?.organizationName,
email: getOauthAccountInfo()?.emailAddress,
);
}
return accountInfo;
}