# Login and Register in Angular

An Auth service sends the credentials to the API, keeps the signed-in user in a signal and the token in localStorage, and signs out by forgetting both. Sign-in and register pages show the API's errors, and the header shows who's signed in. Hiding buttons is for convenience; the API is what keeps data safe.

![Cheat sheet: Login and Register in Angular](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/d0109f3791d14935a24d4dbdf1922d78.webp)

- Category: Angular
- Level: Journeyman
- Tags: angular, Local Storage, tap
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/security-in-angular-login-and-register-in-angular-cheat-sheet
