diff --git a/src/Interlinked.Core/Services/UserManager.cs b/src/Interlinked.Core/Services/UserManager.cs index 4f1de42..ebe7d7f 100644 --- a/src/Interlinked.Core/Services/UserManager.cs +++ b/src/Interlinked.Core/Services/UserManager.cs @@ -17,6 +17,7 @@ public class UserManager private readonly IServiceProvider _serv; + public async Task InitAsync() { using var scope = _serv.CreateAsyncScope(); @@ -24,6 +25,7 @@ public class UserManager if (resp.StatusCode == HttpStatusCode.OK) { User = (await resp.Content.ReadFromJsonAsync())!; + Console.WriteLine($"User: {User.Id}"); } } diff --git a/src/Interlinked.Core/Shared/MainLayout.razor b/src/Interlinked.Core/Shared/MainLayout.razor index d6d6eda..f9d6d96 100644 --- a/src/Interlinked.Core/Shared/MainLayout.razor +++ b/src/Interlinked.Core/Shared/MainLayout.razor @@ -24,3 +24,11 @@ + +@code { + protected override async Task OnInitializedAsync() + { + Console.WriteLine($"meow: {usr.IsAuthorized}"); + Console.WriteLine($"Meow: {usr.User.Id}"); + } +} diff --git a/src/Interlinked.User/Properties/launchSettings.json b/src/Interlinked.User/Properties/launchSettings.json index e3a2111..a628625 100644 --- a/src/Interlinked.User/Properties/launchSettings.json +++ b/src/Interlinked.User/Properties/launchSettings.json @@ -13,7 +13,7 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, - "launchUrl": "/", + "launchUrl": "login", "applicationUrl": "http://localhost:5066", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" @@ -23,7 +23,7 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, - "launchUrl": "/", + "launchUrl": "login", "applicationUrl": "https://localhost:7203;http://localhost:5066", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development"