@inject AccountManager Account @inject AccountState AccountState
@if (guestAccountDescriptionIsVisible) {

What's the difference?

@**@

Guest accounts are session based, meaning that the account lives exclusively within the device and browser you create the account on. This is the only difference between guest and email accounts.

Deleting your device's browser storage for this site also deletes your guest account. This data is how you are remembered between sessions.
} else {

Welcome to Shogi!

How would you like to proceed?

@if (AccountState.User != null) { /* This is an escape hatch in case user login fails in certain ways. */ }

}
@code { bool guestAccountDescriptionIsVisible = false; void ShowGuestAccountDescription() { guestAccountDescriptionIsVisible = true; } void HideGuestAccountDescription() { guestAccountDescriptionIsVisible = false; } }