Added automatic token refresh feature and login page
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
@page "/"
|
||||
@using HopFrame.Security.Claims
|
||||
@using HopFrame.Web.Components
|
||||
|
||||
<AuthorizedView RedirectIfUnauthorized="login"/>
|
||||
|
||||
<PageTitle>Home</PageTitle>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user