Add authentication tables, password functions and HTTP routes, and initialize deployment signing keys. Existing keys and customized application files are preserved. Install the private package artifact with --package, or install @bijectionhq/auth first. The application owns its sign-in UI and permissions.
Usage:
bijection auth init [flags]
Flags:
--deployment string Configure authentication on a specific deployment. Accepts:
• a deployment name (e.g. joyful-capybara-123)
• a deployment reference (e.g. dev/james, staging)
• dev (for your personal dev deployment)
• prod (for your project’s default production deployment).
You can also select deployments in other projects with project-slug:reference.
-h, --help help for init
--package string Install the private @bijectionhq/auth package tarball using the project's package manager
--prod Configure authentication on this project's default production deployment.
--site-url string Application origin for login redirects (for example http://localhost:5173)
--url string Configure authentication on the deployment at the given URL.