Refactor authentication middleware to remove dependency on Pinia, implementing direct API calls for authentication status checks. Update member API documentation to escape JWT token placeholder for clarity. Update session and user data formats for improved security and consistency.

This commit is contained in:
Torsten Schulz (local)
2026-01-07 17:26:22 +01:00
parent 5ce064cff0
commit 7fb65723c7
4 changed files with 17 additions and 18 deletions

View File

@@ -540,7 +540,7 @@ curl -X POST http://localhost:3100/api/auth/login \
# Mitglied hinzufügen mit Token
curl -X POST http://localhost:3100/api/members \
-H "Authorization: Bearer <your-jwt-token>" \
-H "Authorization: Bearer &lt;your-jwt-token&gt;" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Max",
@@ -552,7 +552,7 @@ curl -X POST http://localhost:3100/api/members \
# Bulk-Import von Mitgliedern
curl -X POST http://localhost:3100/api/members/bulk \
-H "Authorization: Bearer <your-jwt-token>" \
-H "Authorization: Bearer &lt;your-jwt-token&gt;" \
-H "Content-Type: application/json" \
-d '{
"members": [