コード例 #1
0
        public async Task RefreshSigninForCurrentUserAsync()
        {
            if (string.IsNullOrEmpty(_requestContext.UserId))
            {
                throw new Exception("Cannot refresh signin without a current user.");
            }

            var user = await _userManager.FindByIdAsync(_requestContext.UserId);

            await _signInManager.RefreshSignInAsync(user);

            _webUserContextService.RefreshClientSessionData();
        }