Skip to main content

Authentication

The kit uses Supabase for authentication. By default, it uses anonymous authentication — which is the recommended approach for apps with paywalls and onboarding flows.

Why Anonymous Auth is the Default

Most successful subscription apps follow this pattern:
With anonymous auth, users:
  • Don’t see a login screen before they understand your app’s value
  • Can complete onboarding and see the paywall without friction
  • Get a seamless experience that maximizes conversion
Anonymous users are real users. They have a unique ID, can make purchases, and their data persists. The only difference is they didn’t enter an email/password.

When to Use Anonymous Auth


Authentication Options

The kit supports multiple auth methods. Enable them in config/app.config.ts:

Available Methods

Anonymous

No sign-in required. Default and recommended.

Email + Password

Traditional email/password authentication

Apple Sign In

One-tap sign in for iOS users

Google OAuth

Sign in with Google account
App Store Requirement: If you use Google OAuth (or any third-party social login), you must also offer Apple Sign In. See the Apple Sign In guide for details and other important App Store guidelines.

How It Works

Anonymous Auth

When the app launches, it automatically creates an anonymous user:
The user gets a unique ID that persists across sessions. They can make purchases, save data, and use the app normally.

Switching to Other Auth Methods

If you need users to sign in, set auth.mode to 'required':
Then use the pre-built auth screens:

Key Files


Using Auth in Your App

Get Current User

Check if Anonymous

Sign Out


UI Components

The kit includes ready-to-use auth components:

Forms

Social Buttons

Divider


Account Linking (Coming Soon)

In a future update, anonymous users will be able to “upgrade” their account by linking an email or social provider — without losing their data or purchases.

Next Steps

Apple Sign In

Set up Sign in with Apple

Google OAuth

Set up Google authentication

Email + Password

Set up email authentication