public static void Authorise(this IJSRuntime jSRuntime, ref string password, ref bool isAuthorised) { if (jSRuntime.GetLocalStorageValue("kitchenPassword").Result == "BetterThanDominos") { password = "******"; isAuthorised = true; } if (!isAuthorised) { password = jSRuntime.Prompt("Please type the kitchen password").Result; } if (password == "BetterThanDominos") { isAuthorised = true; } }