Unverified Commit e94ed0a4 authored by Erik Petersen's avatar Erik Petersen Committed by GitHub
Browse files

Fix spelling of "Replace" in part 06 docs (#269)

parent 1e86271f
......@@ -508,7 +508,7 @@ To configure the authentication system to use our `PizzaAuthenticationState` ins
builder.Services.AddApiAuthorization<PizzaAuthenticationState>();
```
Now we need to add logic to persist the current order, and then reestablish the current order from the persisted state after the user has successfully logged in. To do that, update the `Authentication` component to use `RemoteAuthenticatorViewCore` instead of `RemoteAuthenticatorView`. Override `OnInitialized` to setup the order state to be persisted, and implement the `OnLogInSucceeded` callback to reestablish the order state. You'll need to add a `RepaceOrder` method to `OrderState` so that you can reestablish the saved order.
Now we need to add logic to persist the current order, and then reestablish the current order from the persisted state after the user has successfully logged in. To do that, update the `Authentication` component to use `RemoteAuthenticatorViewCore` instead of `RemoteAuthenticatorView`. Override `OnInitialized` to setup the order state to be persisted, and implement the `OnLogInSucceeded` callback to reestablish the order state. You'll need to add a `ReplaceOrder` method to `OrderState` so that you can reestablish the saved order.
*BlazingPizza.Client/Pages/Authentication.razor*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment