Feat: (UI) API Key 、 User Management、refreshToken、change password after first login#5143
Feat: (UI) API Key 、 User Management、refreshToken、change password after first login#5143maoyuehui wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request migrates authentication token storage from cookies to session storage, implements automatic token refreshing on 401 errors, introduces a password-change requirement on first login, and refactors the API Key and User Management pages into collapsible layouts. Feedback on these changes highlights several issues: an explicit onChange override in api-key-dialog.tsx prevents expiration dates from being saved; onChange should be optional in DateTimePickerProps; string-based permissions are ignored during edit hydration in inferPermissions; custom layout classes on password inputs break the eye icon's positioning; a missing catch block in handleChangePassword could cause unhandled promise rejections; and the PermissionSelector risks losing unrecognized permissions during edits.
Pages:
Components: