public Optional <IUser> GetUser() => _httpRequestTokenAccessor .GetRequestHttpToken() .MapOptional(token => _tokenEngine.Read <IUser>(token));
public Optional <TUserClaim> GetRequestUserClaim <TUserClaim>() where TUserClaim : class => _httpRequestTokenAccessor .GetRequestHttpToken() .MapOptional(token => _tokenEngine.Read <TUserClaim>(token));