Skip to content

Commit df0c093

Browse files
committed
Fix InteractiveUserService not notifying on sign-in & sign-up
1 parent 37121cb commit df0c093

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

sample/BitzArt.Blazor.Auth.SampleApp/BitzArt.Blazor.Auth.SampleApp.Shared/Pages/HomePage.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@namespace BitzArt.Blazor.Auth.SampleApp
22
@page "/"
3-
@rendermode InteractiveAuto
43

54
<PageTitle>Home Page | Blazor.Auth</PageTitle>
65

src/BitzArt.Blazor.Auth.Server/Services/InteractiveUserService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public async Task<AuthenticationOperationInfo> SignInAsync(TSignInPayload signIn
180180
[url, HttpMethod.Post.Method, signInPayload, "json"])
181181
?? throw new InvalidOperationException("Failed to deserialize the authentication result info.");
182182

183+
NotifyAuthenticationStateUpdated(result);
184+
183185
return result;
184186
}));
185187
}
@@ -203,6 +205,8 @@ public async Task<AuthenticationOperationInfo> SignUpAsync(TSignUpPayload signUp
203205
[url, HttpMethod.Post.Method, signUpPayload, "json"])
204206
?? throw new InvalidOperationException("Failed to deserialize the authentication result info.");
205207

208+
NotifyAuthenticationStateUpdated(result);
209+
206210
return result;
207211
}));
208212
}

0 commit comments

Comments
 (0)