AnotherWrapper · update
Google OAuth flow refactored.
Moved the
redirectTologic into a centralized function usinggetRedirectUrlfor dynamic URLs based on environment.Replaced direct Supabase client calls in the
GoogleSignInButtonwith an API route (`/api/auth/google`) for better separation of concerns.Enhanced maintainability and debugging by centralizing the authentication logic in the API route.