> ## Documentation Index
> Fetch the complete documentation index at: https://numadocs.secc.org/llms.txt
> Use this file to discover all available pages before exploring further.

# App

> `App.razor` is the root component of the Blazor Server application; it loads CSS, JS, and handles cascading authentication to the app.

Component Name: `App.razor`\
Version: `1.0.0`

## Dependencies

Services: <br /> [AdminSettingsService](../services/adminsettingsservice)

## Lifecycle Methods

```csharp theme={null}
protected override async Task OnInitializedAsync()
{
    await AdminSettingsService.InitializeCurrentAdminSettingsAsync();
}
```

## Cascading Authentication

```csharp theme={null}
<body>
    //Authentication is provided by the Microsoft Entra Id service registered in Program.cs
    <CascadingAuthenticationState>
        <Routes @rendermode="InteractiveServer" /> //Setting the render mode of the Blazor app 
    </CascadingAuthenticationState>

    //JS scripts
</body>
```
