{JSON.stringify(session.profile, null, 2)}
}
/>
} />
} />
);
}
function dayLabel(day: number): string {
return dayOptions.find((option) => option.value === day)?.label ?? String(day);
}
function formatUtc(value: string): string {
return new Date(value).toLocaleString();
}
function providerLabel(provider: IdentityProvider): string {
if (provider === 0 || provider === '0' || provider === 'InternalJwt') {
return 'Internal JWT';
}
if (provider === 1 || provider === '1' || provider === 'AzureAd') {
return 'Azure AD';
}
if (provider === 2 || provider === '2' || provider === 'Google') {
return 'Google';
}
return String(provider);
}
export default App;