(ctx context.Context)
| 103 | } |
| 104 | |
| 105 | func (t *MultiResolver) TenantID(ctx context.Context) (string, error) { |
| 106 | orgIDs, err := t.TenantIDs(ctx) |
| 107 | if err != nil { |
| 108 | return "", err |
| 109 | } |
| 110 | |
| 111 | if len(orgIDs) > 1 { |
| 112 | return "", user.ErrTooManyOrgIDs |
| 113 | } |
| 114 | |
| 115 | return orgIDs[0], nil |
| 116 | } |
| 117 | |
| 118 | func (t *MultiResolver) TenantIDs(ctx context.Context) ([]string, error) { |
| 119 | //lint:ignore faillint wrapper around upstream method |