Launchtoday provides a centralized authentication system through a React Context provider which you can find here. This context manages all authentication flows, user sessions, and authentication state throughout your application.
You can find an example of consuming the auth context in the login screen implementation here.
The authentication context is implemented using React’s Context API and provides a comprehensive set of methods and state for handling user authentication. The provider is already configured in your application’s root component, making authentication services available throughout your app.
The context exposes several authentication methods:
Copy
// Sign in methodssignInWithApple(): Promise<void> // Handles Apple authentication flowsignInWithGoogle(): Promise<void> // Handles Google OAuth flowsignInWithEmail(email: string): Promise<void> // Initiates Magic Link authentication// Session managementsignOut(): Promise<void> // Signs out the current userdeleteAccount(): Promise<void> // Deletes the user's account// State managementuser: User | null // Current user informationloading: boolean // Authentication loading state