Skip to content

Update dependencies and refactor authentication logic in App component#35

Merged
joshua-journey-apps merged 3 commits into
mainfrom
simplify-auth
Aug 19, 2025
Merged

Update dependencies and refactor authentication logic in App component#35
joshua-journey-apps merged 3 commits into
mainfrom
simplify-auth

Conversation

@dean-journeyapps
Copy link
Copy Markdown
Contributor

  • Upgraded @powersync/react to version 1.7.0 and @powersync/web to version 1.25.1 in package.json and package-lock.json.
  • Updated @powersync/common dependency to version 1.36.0.
  • Refactored authentication logic in App component to use useEffect for fetching user ID from Supabase on component mount, simplifying the code by removing unnecessary state management for authentication status.
  • Adjusted SupabaseConnector to streamline the anonymous sign-in process.

- Upgraded @powersync/react to version 1.7.0 and @powersync/web to version 1.25.1 in package.json and package-lock.json.
- Updated @powersync/common dependency to version 1.36.0.
- Refactored authentication logic in App component to use useEffect for fetching user ID from Supabase on component mount, simplifying the code by removing unnecessary state management for authentication status.
- Adjusted SupabaseConnector to streamline the anonymous sign-in process.
Comment thread src/App.tsx Outdated
const [userID, setUserID] = useState<string | null>(null);
const [isAuthenticating, setIsAuthenticating] = useState(false);
const [authError, setAuthError] = useState<string | null>(null);
// const [isAuthenticating, setIsAuthenticating] = useState(false);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these comments are necessary

@joshua-journey-apps joshua-journey-apps merged commit b28137c into main Aug 19, 2025
1 check passed
@dean-journeyapps dean-journeyapps deleted the simplify-auth branch August 19, 2025 10:44
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.

2 participants