TenantID returns exactly a single tenant ID from the context. It should be used when a certain endpoint should only support exactly a single tenant ID. It returns an error user.ErrNoOrgID if there is no tenant ID supplied or user.ErrTooManyOrgIDs if there are multiple tenant IDs present.
(context.Context)
| 44 | // tenant ID. It returns an error user.ErrNoOrgID if there is no tenant ID |
| 45 | // supplied or user.ErrTooManyOrgIDs if there are multiple tenant IDs present. |
| 46 | TenantID(context.Context) (string, error) |
| 47 | |
| 48 | // TenantIDs returns all tenant IDs from the context. It should return |
| 49 | // normalized list of ordered and distinct tenant IDs (as produced by |
no outgoing calls