Authentication Feature

Add Secure Authentication to Your React Native App

Stop spending weeks on auth. VibeFast includes Google, Apple, and email authentication with a Convex backend—production-ready for iOS and Android.

Complete Authentication Stack

Everything you need for secure user authentication, from social login to session management.

Social Sign-In

Google and Apple authentication with proper native handling for iOS and Android.

Email Authentication

Email/password registration and login with validation and error handling.

OTP Verification

One-time password flows for email verification and two-factor authentication.

Password Reset

Secure password reset flow with email verification and token handling.

Session Management

Secure session handling with Convex backend. Auto-refresh and logout support.

User Profiles

User data storage and profile management with Convex database.

What's Included

Google Sign-In for iOS and Android
Apple Sign-In for iOS
Email/password authentication
OTP verification flows
Password reset with email
Protected route wrapper
Auth context and hooks
Session persistence
Auth backend configuration
Login/signup screens
Profile settings screen
Loading and error states

Simple Integration

Protect screens and access user data with a few lines of code.

ProtectedScreen.tsx
import { useAuth, AuthGuard } from "@/auth/hooks";

export default function ProfileScreen() {
  const { user, signOut } = useAuth();

  return (
    <AuthGuard>
      <View className="flex-1 p-4">
        <Text className="text-xl font-bold">
          Welcome, {user?.name}!
        </Text>
        <Text className="text-muted-foreground">
          {user?.email}
        </Text>
        
        <Button onPress={signOut}>
          Sign Out
        </Button>
      </View>
    </AuthGuard>
  );
}
Social Sign-In
import { useAuth } from "@/auth/hooks";

export default function LoginScreen() {
  const { signInWithGoogle, signInWithApple, isLoading } = useAuth();

  return (
    <View className="flex-1 items-center justify-center gap-4">
      <GoogleSignInButton
        onPress={signInWithGoogle}
        loading={isLoading}
      />
      
      {Platform.OS === "ios" && (
        <AppleSignInButton
          onPress={signInWithApple}
          loading={isLoading}
        />
      )}
    </View>
  );
}

Save Weeks of Development

FeatureVibeFastFrom Scratch
Google Sign-In setup1-2 days
Apple Sign-In setup1-2 days
Email/password auth1-2 days
OTP verification1 day
Password reset flow1 day
Backend + database2-3 days
Auth UI screens2-3 days
Total TimeReady today2-3 weeks

Frequently Asked Questions

Which authentication providers are supported?

VibeFast includes Google Sign-In (iOS + Android), Apple Sign-In (iOS), and email/password authentication. The social login uses proper native SDKs for the best user experience. You can extend to add other providers like Facebook or GitHub.

How does the auth backend work?

Authentication is handled through backend mutations and queries (using Convex or Supabase). When a user signs in, their session is stored securely and synced to the app. The auth hooks provide real-time session state, and protected routes automatically redirect unauthenticated users.

Is the authentication secure?

Yes. Social sign-in uses official OAuth flows. Passwords are hashed server-side. Sessions use secure tokens. The backend runs on secure infrastructure with automatic HTTPS. You should also implement rate limiting for production.

Can I customize the auth screens?

Absolutely. The auth screens (login, signup, forgot password, OTP) are built with Uniwind and are fully customizable. Change colors, add your logo, rearrange elements, or completely redesign while keeping the auth logic.

How do I protect screens that require login?

VibeFast includes a useAuth hook and AuthGuard component. Wrap protected screens with AuthGuard or use the hook directly. Unauthenticated users are automatically redirected to the login screen.

Does it work with Expo Go?

Email authentication works with Expo Go. However, Google and Apple Sign-In require native modules, so you'll need a development build (prebuild). The documentation walks you through the one-time setup.

Ready to Add Secure Auth?

Get VibeFast and ship authentication this week.

One-time purchase. Lifetime updates. Commercial license included.