JWT Auth API & Angular Integration

Job ID: 40004621

Budget: ₹600 – ₹1,500 INR

I have an existing Angular front-end and I now need the full JWT flow wired up on the back-end and consumed on the client side.

Backend
– Build a lightweight Web API (C# .NET Core preferred) that registers new users, hashes their passwords, and immediately returns a signed JWT on successful registration or login.
– Token must be created server-side, include the usual security best practices (secret key, expiry, issuer, audience), and be sent back in a JSON response.
– Add an endpoint that validates any incoming token so protected resources can be shielded behind middleware/attribute authorization.

Frontend
– In the Angular app, hook registration and login forms to the new endpoints.
– Use an HTTP interceptor to automatically add the token to every subsequent request and to redirect to the login page when the token is missing or expired.
– After a successful login, store the token in localStorage (or an equally secure browser store you recommend) and route the user to a protected dashboard component.

Deliverables
1. Complete Web API project with JWT implementation and basic user model.
2. Updated Angular components (registration, login, interceptor, auth guard).
3. A short, clear write-up or recorded walk-through that explains how each part works together—from token creation to validation—so I can maintain and extend the solution later.

I’ll test by registering a new user, logging in, refreshing the page, and hitting a protected endpoint; access should only be granted when the token is valid.