update tests

This commit is contained in:
root
2026-06-08 22:06:30 -04:00
parent 79024235ef
commit 60ecacb7f8
54 changed files with 13243 additions and 5561 deletions
+1 -1
View File
@@ -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 callers JWT token (best-effort) and returns `{message: "Logged out"}` even if the token was already invalid.