Commit Graph

9 Commits

Author SHA1 Message Date
d3d7744402 Refactor backend code style and improve user profile handling
- Standardize import formatting and indentation in auth and funcionarios
  modules
- Enhance getCurrentUser query to include photo URL retrieval from
  storage
- Add getCurrent funcionario query based on authenticated user
- Update controller logic to avoid redundant local state for profile
  photos
- Upgrade dependencies: convex 1.28.2, svelte 5.43.6, vite 7.2.2, rollup
  4.53.2, tailwindcss 4.1.17, and others
2025-11-11 16:01:18 -03:00
28107b4050 refactor: enhance Sidebar component with Better Auth integration
- Replaced the use of `useConvexClient` with `useQuery` for fetching the current user.
- Updated avatar URL retrieval to utilize the current user data from Better Auth.
- Refactored login and logout functions to use the new `authClient` methods for improved authentication flow.
- Cleaned up the component structure and styling for better readability and maintainability.
- Adjusted sidebar and footer styles for consistency with the new design system.
2025-11-08 09:48:12 -03:00
3a32f5e4eb refactor: remove authentication module and integrate Better Auth
- Deleted the `autenticacao.ts` file to streamline the authentication process.
- Updated the `auth.ts` file to include new functions for user management and password updates.
- Modified the schema to enforce the presence of `authId` for users, ensuring integration with Better Auth.
- Refactored the seed process to create users with Better Auth integration, enhancing user management capabilities.
- Cleaned up the `usuarios.ts` file to utilize the new authentication functions and improve code clarity.
2025-11-07 23:33:09 -03:00
57dd9492ef refactor base auth 2025-11-07 10:33:48 -03:00
6f4df44a00 refactor: simplify auth component configuration
- Removed the local schema configuration from the auth component, streamlining the integration with Better Auth.
- Updated the client creation to focus solely on the DataModel, enhancing clarity and maintainability.
2025-11-07 09:18:41 -03:00
ca51839082 initial better auth config 2025-11-06 11:42:48 -03:00
1058375a90 refactor: remove unused authentication files and dependencies; update package.json to streamline dependencies and improve project structure 2025-10-29 18:57:05 -03:00
6bfc0c2ced fix: improve role assignment logic and permission handling in dashboard components 2025-10-27 08:41:53 -03:00
577261bf67 Add better-auth integration and update dependencies in package.json and bun.lock 2025-10-22 15:13:34 -03:00