Example #1
0
        public async Task <UserDto> Authenticate(UserDto user, string accessToken)
        {
            var foundUser = await _userRepository.GetOrCreate(user);

            if (string.IsNullOrEmpty(foundUser.GooglePhotoAlbumId))
            {
                await _photoService.AddAlbum(accessToken, foundUser);
            }

            return(foundUser);
        }