Learn

Multi-Tenant Authentication

Multi-tenant authentication allows a single user to access multiple organizations (tenants) from one account. Each organization has separate data, roles, and permissions. Tokens are scoped to the active organization.

Frequently Asked Questions

How do tokens work with multi-tenancy?

Tokens are scoped to the active organization. When a user switches orgs, they get new tokens with the new org context. API calls always operate within one org scope.

Can users have different roles in different orgs?

Yes. A user might be an owner in one org and a member in another. The role is per-org, not per-user.

How does GitHat handle tenant isolation?

Tokens carry the active org ID. API middleware extracts the org context from the token and scopes all data access to that organization.

Try GitHat free

Ship authenticated apps in minutes, not weeks.