Henosia Auth
Henosia Auth gives your organization built-in, centrally managed sign-in and access control across the apps you build and publish in Henosia.
New projects you start from the dashboard include Henosia Auth out of the box, so they start with company governance instead of per-project login setup:
- One work account across every app: Colleagues sign in with their Henosia work account and move between your organization's apps with the App switcher.
- Private to your organization by default: Only members of your Henosia organization can sign in to a published app, unless you add external guests.
- Centralized governance, no redeploy: Change who can sign in (all members, selected members, external guests, or office networks) without editing code or republishing.
- Automatic database identity: Connecting Supabase links each signed-in user in your database automatically, instead of maintaining separate Supabase Auth accounts and password forms per app.
You manage access for each app in the builder's left toolbar under Environment settings (the gear icon), then Henosia Auth. Changes apply to new sign-ins right away.
Who can sign in by default
Published apps only allow members of your Henosia organization to sign in by default (All members can sign in). Colleagues sign in with Continue with Google, Continue with Microsoft, or Send one-time password using their work email.
People outside your organization are turned away unless you add them as guests. Temporary editors who joined your builder preview through an invite link cannot sign in to published apps.
If you have not set up your Henosia organization or invited teammates yet, only you can sign in, and colleagues are turned away unless added as guests. Open Organizations on your dashboard, choose Create Organization if needed, and choose Invite Member so teammates automatically get member access across your apps.
Repositories you bring in with Import on the dashboard follow your Henosia organization's membership like any other project. Projects opened directly from a Henosia GitHub App installation check access to that installation instead, plus any guests you add.
Automatic Supabase integration
Most apps need database rules that decide which rows each person can view or edit. With Henosia Auth, you can write per-user database rules without building sign-up pages, password resets, or separate user accounts in each app.
When you connect a Supabase project, Henosia registers Henosia Auth as a custom sign-in provider in Supabase for both the builder preview and your published app. Signing in to your app creates or links that same person in Supabase automatically, so Row Level Security policies work with their Henosia identity right away.
Let only some members in
Not every internal tool belongs in front of the whole company. For apps with sensitive team data, such as HR records, finance approvals, or leadership reporting, you can limit sign-in to the colleagues who need it.
In Environment settings > Henosia Auth, switch Members who can sign in to your published app from All members can sign in to Only selected members can sign in. Then search and tick the colleagues who should have access under Select who can sign in.
The app's owner and your organization's owners and admins always keep access and cannot be unchecked. Leaving everyone else unticked limits the app to them.
Members left off this list cannot get around it through a guest rule. The App switcher also hides restricted apps from members who cannot sign in to them.
Let in people outside your organization
Some apps involve people outside your company, such as clients reviewing deliverables, suppliers updating orders, or an external bookkeeper. You can grant them guest access to that single published app without adding them to your Henosia organization.
Under Guests who can sign in to your published app in Environment settings > Henosia Auth, you can add individual people or whole partner domains. Choose Add one guest and enter Their email address, or choose Add a guest company and enter The company's email domain (without @), then choose Add.

Admitted guests sign in to your published app with a one-time code sent to their email (Send one-time password), using either a work or personal address. Guests whose company uses Google Workspace or Microsoft 365 can also sign in with Continue with Google or Continue with Microsoft.
Guest access stays isolated to that single published app:
- No builder or company-wide access: Guests cannot open your project in the builder and cannot see your organization's other apps in the App switcher.
- External domains only: You cannot add your own organization's email domain as a guest. Invite colleagues as organization members instead.
- Separate in-app permissions: Henosia Auth controls who may sign in. Use Supabase Row Level Security and server checks to control which pages and records guests can read or change. See the guest prompt in the Prompt library.
Restrict sign-in by network
For tools that should only be opened on premises or over your company VPN, you can require visitors to connect from your organization's public network addresses.
By default, Network restrictions for sign in in Environment settings > Henosia Auth is set to Allow sign in attempts from all networks. Switch to Restrict sign in attempts to specific network addresses to allow only the public addresses or ranges you list. Use Add one IP address or Add an IP range (such as 203.0.113.0/24) and choose Add.
From any other network, visitors are turned away right after signing in to Henosia, before Henosia checks whether their account has access to the app. Because this rule protects the network perimeter, it applies to everyone, including the app's owner.
Self-publishing and local development
When you publish through Henosia, Henosia sets all Henosia Auth credentials and redirect URLs on your live site automatically.
If you run a project locally (http://localhost:3000 or http://localhost:3333) or deploy it on your own infrastructure, open Environment settings > Environment variables and use Self publishing:
- If you host the app yourself, enter its live
https://address in Self publish production site url and choose Save so Henosia registers your domain for sign-in redirects and the App switcher. - Switch Environment between Production and Preview & Local development to copy the variables for your hosting provider or local
.env.localfile.

Technical details
Henosia's Next.js project template sets up Henosia Auth with @henosia/app-next and Better Auth, authenticating against Henosia's OAuth 2.1 and OpenID Connect provider with PKCE. On projects without Henosia Auth, Environment settings > Henosia Auth shows Henosia Auth is currently not installed in this project and links to support@henosia.com.
- Managed OAuth clients: Henosia maintains separate OAuth 2.1 clients for your builder preview (including
http://localhost:3000andhttp://localhost:3333) and for your production deployment. - Server-side verification:
@henosia/app-nextprovidescreateHenosiaAuthMiddlewareas a fast pre-check, plusrequireHenosiaAuthandrouteWithHenosiaAuth(@henosia/app-next/auth/server-guards) to verify tokens in pages, Server Actions, and Route Handlers. - Token claims: Verified ID tokens are checked against Henosia's JWKS endpoint and must match
HENOSIA_AUTH_PROJECT_IDon thehttps://henosia.com/projectclaim. Organization details (id,name,logoUrl) and guest status (asGuest) are provided on thehttps://henosia.com/organizationclaim.
Next steps
App switcher
Let colleagues switch between the published apps they can sign in to.
Connect Supabase
Link a Supabase database so Henosia Auth users work with Row Level Security automatically.
Environment settings and secrets
Manage environment variables, self-publishing URLs, and App switcher groups.
Publish
Deploy your app to its live web address and push updates.