JWT Authentication in CodeIgniter — a practical guide to CodeIgniter JWT with clear examples you can reuse in real projects.
CodeIgniter Tutorial Series (47/74). Prefer one article? Read the complete CodeIgniter tutorial.
Short description
Issue a signed JWT on login and verify it in a filter on protected routes.
JWT flow (conceptual)
1. POST /login with email/password
2. Verify user + password_hash
3. Return JWT access token
4. Client sends Authorization: Bearer <token>
5. Filter verifies signature + expiry