@page "/redeem/{Token}/" @using System.Net @rendermode @(new InteractiveWebAssemblyRenderMode(false)) @inject IJSRuntime Js @inject NavigationManager navigation @if (_responseCode == null) {
Loading...
} else if (_responseCode == HttpStatusCode.Forbidden) { Invalid invitation! } else if (_responseCode == HttpStatusCode.NoContent) { No template providen by admin. } else if (_responseCode == HttpStatusCode.BadRequest) { An internal error occured. } else { @foreach (var configLine in _config!.Split("\n")) {@configLine
} } @code { private readonly HttpClient _httpClient = new(); [Parameter] public string Token { get; set; } private HttpStatusCode? _responseCode; private string? _config; protected override async Task OnInitializedAsync() { var keypair = await Js.InvokeAsync