title: Angular all auth logic inside the service
body: <p>I want to move all the business logic inside the auth service and on the component side i just want to call the method
  Since none of my functions return anything, is that ok or will they hang?</p>
  
  <p>COMPONENT</p>
  
  <pre><code>  credentials: Credentials = {
      email: 'pacurarudaniel@gmail.com',
      password: '123'
    }
  
    onLogIn(): void {
      this.authService.logIn(this.credentials.email, this.credentials.password);
    }
  </code></pre>
  
  <p>SERVICE</p>
  
  <pre><code>  public logIn(email: string, password: string): void {
      this.http.post&lt;any&gt;('http://localhost:3100/login', { email, password })
        .subscribe(user =&gt; {
          localStorage.setItem('TOKEN', user.token)
          this.router.navigateByUrl('/home');
        });
    }
  </code></pre>