Added hopframe backend
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
@page "/login"
|
||||
@using SpotiParty.Web.Services
|
||||
|
||||
<a class="button-primary" href="@_uri">Mit Spotify einloggen</a>
|
||||
|
||||
@inject AuthorizationHandler AuthHandler
|
||||
@inject NavigationManager Navigator
|
||||
|
||||
@code {
|
||||
|
||||
private Uri _uri = null!;
|
||||
|
||||
protected override async Task OnInitializedAsync() {
|
||||
await base.OnInitializedAsync();
|
||||
_uri = await AuthHandler.ConstructLoginUri();
|
||||
var uri = await AuthHandler.ConstructLoginUri();
|
||||
Navigator.NavigateTo(uri.ToString(), forceLoad: true);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user