MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildAccountProperties

Function buildAccountProperties

src/utils/status.tsx:350–364  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348 return items;
349}
350export 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}
365export function buildAPIProviderProperties(): Property[] {
366 const apiProvider = getAPIProvider();
367 const properties: Property[] = [];

Callers 2

status.test.tsFile · 0.70
buildPrimarySectionFunction · 0.50

Calls 3

getAuthRuntimeFunction · 0.85
buildAuthStatusViewFunction · 0.85
getCurrentSessionMethod · 0.65

Tested by

no test coverage detected