update tests
This commit is contained in:
@@ -76,7 +76,7 @@ This document lists every API controller alphabetically with any inline route co
|
||||
**File:** `app/Http/Controllers/Api/Auth/AuthController.php`
|
||||
**Purpose:** JWT-backed authentication endpoints.
|
||||
|
||||
- `POST /api/v1/auth/login` (`login`) – Validates `email` and `password`, looks up the user case-insensitively, uses `verify_stored_password`, and returns `{access_token, token_type, expires_in}` or `401`.
|
||||
- `POST /api/v1/auth/login` (`login`) – Validates `email` and `password`, looks up the user case-insensitively, uses `verify_stored_password`, and returns a top-level `{token, access_token, token_type, expires_in, user}` payload or `401`.
|
||||
- `GET /api/v1/auth/me` (`me`) – Requires a valid bearer token, returns the decoded `User` JSON via `JWTAuth::parseToken()->authenticate()`.
|
||||
- `POST /api/v1/auth/logout` (`logout`) – Invalidates the caller’s JWT token (best-effort) and returns `{message: "Logged out"}` even if the token was already invalid.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user