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. ignore stu
(ctx context.Context)
| 24 | // |
| 25 | //nolint:revive |
| 26 | func TenantID(ctx context.Context) (string, error) { |
| 27 | return defaultResolver.TenantID(ctx) |
| 28 | } |
| 29 | |
| 30 | // TenantIDs returns all tenant IDs from the context. It should return |
| 31 | // normalized list of ordered and distinct tenant IDs (as produced by |