Migration to TypeScript and changed API-calls - #11
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| interface User { | ||
| id: number; | ||
| username: string; | ||
| } |
There was a problem hiding this comment.
Align auth store user fields with API response
The new User interface assumes a property named id, but the login API returns user_id (see UserResponse in the backend). Because setAuth stores the raw response object, authStore.user.id is always undefined after a successful login, so any view or subsequent request that reads the user ID will fail. Either map user_id to id when storing the user or update the interface to match the backend payload.
Useful? React with 👍 / 👎.
…://github.com/MoSchmidt/inquiro into Migration_to_typescript_and_changed_api_calls
Uh oh!
There was an error while loading. Please reload this page.