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 account | App users (V2 Cloud) | |
|---|---|---|
| Purpose | Build on OpenV2 | Use your published app |
| Storage | Supabase | Your PocketBase instance |
| Manage | Settings → Profile | V2 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
