Added automatic token refresh feature and login page

This commit is contained in:
2024-07-14 21:25:36 +02:00
parent a164a3d282
commit 7cd412b168
16 changed files with 164 additions and 25 deletions

View File

@@ -6,11 +6,9 @@
<h1>Counter</h1>
<AuthorizedView Permissions="@permissions">
<p role="status">Current count: @currentCount</p>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
</AuthorizedView>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;

View File

@@ -1,5 +1,8 @@
@page "/"
@using HopFrame.Security.Claims
@using HopFrame.Web.Components
<AuthorizedView RedirectIfUnauthorized="login"/>
<PageTitle>Home</PageTitle>