public async Task <Response <AuthenticateResponse> > Authenticate(LoginRequest loginRequest) { await _outletService.ValidateOutletandDevice(loginRequest); var token = _tokenServices.Authenticate(loginRequest.OutletId, loginRequest.DeviceId, IpAddress()); SetTokenCookie(token.RefreshToken); var respone = new Response <AuthenticateResponse>(token); return(respone); }