Esempio n. 1
0
        public async Task <ActionResult <AuthDto> > SignIn([FromBody] SignIn command)
        {
            await _commandDispatcher.SendAsync(command);

            var token = _authTokensCache.Get(command.Username);

            return(Ok(token));
        }
Esempio n. 2
0
        public async Task <IActionResult> SignIn(SignInCommand command)
        {
            await _commandDispatcher.SendAsync(command);

            var dto = _cache.Get(command.Email);

            return(Ok(dto));
        }