17 lines
439 B
C#
17 lines
439 B
C#
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);
|
|
}
|