Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using SharepointToolbox.Web.Core.Models;
|
||||
|
||||
namespace SharepointToolbox.Web.Services.Session;
|
||||
|
||||
/// <summary>Scoped per Blazor circuit. Set once on circuit init from auth state.</summary>
|
||||
public interface IUserContextAccessor
|
||||
{
|
||||
string Email { get; }
|
||||
string DisplayName { get; }
|
||||
UserRole Role { get; }
|
||||
bool IsAuthenticated { get; }
|
||||
|
||||
event Action? Initialized;
|
||||
|
||||
void Initialize(AppUser user);
|
||||
}
|
||||
Reference in New Issue
Block a user