Authentication

Configure email and OAuth authentication for your app's end users.

V2 Cloud Authentication configures how your app's users sign up and log in — separate from your OpenV2 platform account.

Auth methods

Email / password

Enable in V2 Cloud → Authentication:

  • Allow email/password login
  • Toggle public signup on or off
  • Password reset flows via PocketBase

Generated apps use useAuth() from ~/lib/pb for login state.

Google OAuth

Configure Google OAuth client ID and secret in the Authentication section. Your app can then offer "Continue with Google" using PocketBase's OAuth providers.

App-side usage

The AI wires screens (login, signup, profile) when you request auth.

Platform account vs. app users

OpenV2 accountApp users (V2 Cloud)
PurposeBuild on OpenV2Use your published app
StorageSupabaseYour PocketBase instance
ManageSettings → ProfileV2 Cloud → User management

Security tips

Warning: Never embed PocketBase admin credentials in client code. OpenV2 proxies admin operations server-side.

  • Always set collection access rules per authenticated user
  • Disable public signup if your app is invite-only