Skip to content

Commit 51240af

Browse files
halter73MackinnonBuck
authored andcommitted
PersistedAuthenticationStateProvider->PersistentAuthenticationStateProvider
1 parent d85f2a6 commit 51240af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"BlazorWeb-CSharp/Data/**",
119119
"BlazorWeb-CSharp/Identity/**",
120120
"BlazorWeb-CSharp/PersistingAuthenticationStateProvider.cs",
121-
"BlazorWeb-CSharp.Client/PersistedAuthenticationStateProvider.cs",
121+
"BlazorWeb-CSharp.Client/PersistentAuthenticationStateProvider.cs",
122122
"BlazorWeb-CSharp.Client/UserInfo.cs",
123123
"BlazorWeb-CSharp.Client/Pages/Auth.razor"
124124
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace BlazorWeb_CSharp.Client;
66

7-
public class PersistedAuthenticationStateProvider(PersistentComponentState persistentState) : AuthenticationStateProvider
7+
public class PersistentAuthenticationStateProvider(PersistentComponentState persistentState) : AuthenticationStateProvider
88
{
99
private static readonly Task<AuthenticationState> _unauthenticatedTask =
1010
Task.FromResult(new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity())));
@@ -24,7 +24,7 @@ public override Task<AuthenticationState> GetAuthenticationStateAsync()
2424

2525
return Task.FromResult(
2626
new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity(claims,
27-
authenticationType: nameof(PersistedAuthenticationStateProvider)))));
27+
authenticationType: nameof(PersistentAuthenticationStateProvider)))));
2828
}
2929
}
3030

0 commit comments

Comments
 (0)