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.
Updated

- Category
- Angular
- Level
- Journeyman
- Tags
- angular, Local Storage, tap