1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/lib/schema
sighphyre e889d8e29c feat: Implement multi token support for client tokens
This adds support for multi project tokens to be created. Backward compatibility is handled at 3 different layers here:

- The API is made backwards compatible though a permissive data type that accepts either a project?: string or projects?: string[] property, validation is done through JOI here, which ensures that projects and project are not set together. In the case of neither, this defaults to the previous default of ALL_PROJECTS
- The service layer method to handle adding tokens has been made tolerant to either of the above case and has been deprecated, a new method supporting only the new structure of using projects has been added
- Existing compatibility for consumers of Unleash as a library should not be affected either, the ApiUser constructor is now tolerant to the the first input and will internally map to the new cleaned structure
2022-04-06 08:11:41 +02:00
..
api-token-schema.test.ts feat: Implement multi token support for client tokens 2022-04-06 08:11:41 +02:00
api-token-schema.ts feat: Implement multi token support for client tokens 2022-04-06 08:11:41 +02:00
constraint-value-types.test.ts Feat/new constraint operators (#1397) 2022-03-04 17:29:42 +01:00
constraint-value-types.ts refactor: always add values to constraints (#1448) 2022-03-17 12:32:04 +01:00
feature-schema.test.ts refactor: always add values to constraints (#1448) 2022-03-17 12:32:04 +01:00
feature-schema.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
project-schema.ts fix: Cleanup new features API with env support (#929) 2021-09-13 10:23:57 +02:00
role-schema.test.ts feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
role-schema.ts feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00