Esempio n. 1
0
 protected override async Task <Entity> FetchAsync(ApiOptions options)
 {
     return(await APUsers.GetByIdAsync(this.Id, options : options));
 }
        public override async Task <UserSession> AuthenticateAsync()
        {
            var user = await APUsers.GetUserByTokenAsync(this.Token);

            return(new UserSession(user, this.Token));
        }