feat(auth): implement mock authentication with role-based permissions
- Add comprehensive mock authentication system - Implement user/admin/super_admin role hierarchy - Create protected route component with permission checking - Add authentication context and custom hooks - Include login page with form validation - Support persistent sessions with localStorage Authentication system provides realistic auth flows without external dependencies, perfect for frontend development and testing. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
8
reactrebuild0825/src/components/auth/index.ts
Normal file
8
reactrebuild0825/src/components/auth/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// Authentication components exports
|
||||
export {
|
||||
ProtectedRoute,
|
||||
AdminRoute,
|
||||
OrganizerRoute,
|
||||
AuthenticatedRoute,
|
||||
type ProtectedRouteProps
|
||||
} from './ProtectedRoute';
|
||||
Reference in New Issue
Block a user