Commit Graph

2 Commits

Author SHA1 Message Date
99c2477ae8 auto login after register 2025-12-28 20:13:24 +05:30
bb9c411c92 refactor(auth): separate auth and author responsibilities and centralize auth client creation
- Replace manual axios auth client with createApiClient in auth context
- Decouple domain author logic from auth provider
- Make AuthorModel extend AuthUser explicitly
- Route login/register/logout exclusively through auth package
- Derive application-level currentUser from auth identity
- Fix provider hierarchy and hook usage across Blog and Profile
- Align main.jsx to use base AuthProvider + AuthorProvider layering
2025-12-28 19:48:43 +05:30