()
| 348 | return items; |
| 349 | } |
| 350 | export function buildAccountProperties(): Property[] { |
| 351 | const session = getAuthRuntime().getCurrentSession(); |
| 352 | if ( |
| 353 | session.providerAuthKind !== 'noumena_first_party' || |
| 354 | session.principalKind === 'none' || |
| 355 | session.principalKind === 'third_party_provider' |
| 356 | ) { |
| 357 | return []; |
| 358 | } |
| 359 | const statusView = buildAuthStatusView(session); |
| 360 | return statusView.accountProperties.map(property => ({ |
| 361 | label: property.label, |
| 362 | value: property.value, |
| 363 | })); |
| 364 | } |
| 365 | export function buildAPIProviderProperties(): Property[] { |
| 366 | const apiProvider = getAPIProvider(); |
| 367 | const properties: Property[] = []; |
no test coverage detected