Skip to content

Commit c87ce39

Browse files
authored
Full directives for FetchData component INCLUDE (#17876)
1 parent 9dc7d8b commit c87ce39

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

aspnetcore/includes/blazor-security/fetchdata-component.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ If the request failed because the token couldn't be provisioned without user int
1515

1616
```razor
1717
@page "/fetchdata"
18-
...
18+
@using Microsoft.AspNetCore.Authorization
19+
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
20+
@inject IAccessTokenProvider AuthenticationService
21+
@inject NavigationManager Navigation
22+
@using {APPLICATION NAMESPACE}.Shared
1923
@attribute [Authorize]
2024
2125
...

0 commit comments

Comments
 (0)