Skip to content

Refactor Auth & State Management: Supabase Integration, Dynamic Profiles & Redux Removal#5

Merged
jpdevhub merged 3 commits into
mainfrom
expo-config
Jun 17, 2026
Merged

Refactor Auth & State Management: Supabase Integration, Dynamic Profiles & Redux Removal#5
jpdevhub merged 3 commits into
mainfrom
expo-config

Conversation

@jpdevhub

Copy link
Copy Markdown
Owner

This PR transitions the mobile app away from heavy legacy state management (Redux/Clerk) to a highly optimized, frictionless authentication and state architecture using Supabase and Zustand. It implements a complete email/password authentication flow, dynamic profile management with photo uploads, and strips out obsolete dependencies to improve bundle size and runtime performance.

jpdevhub added 3 commits June 17, 2026 10:52
- Supabase client (AsyncStorage persistence, autoRefreshToken, no URL detection)
- Zustand auth store with session hydration and onAuthStateChange listener
- Protected route guard with offline detection banner in root layout
- Login screen: zod validation, password visibility toggle
- Register screen: zod validation, terms checkbox, full_name metadata
- Profile screen: dynamic data from public.farmers, DiceBear avatar fallback
- Edit profile screen: react-hook-form, image picker, Supabase storage upload
- Storage bucket migration for avatars with per-user RLS policies
- Removed Clerk, Redux, email verification layer
@jpdevhub jpdevhub merged commit 7215923 into main Jun 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant