tsedio / tsed

:triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
https://tsed.io/
MIT License
2.86k stars 284 forks source link

feat(schema): support multiple security schemes #2800

Closed michael-pxr closed 2 months ago

michael-pxr commented 2 months ago

Information

Type Breaking change
Feature No

Usage example

Support multiple authentication types as documented here:

@Controller("/")
class ModelCtrl {
   @Security([{ "A": ["scope-1"] }, { "B": [], "C": ["scope-2", "scope-3"]}])
   async method() {}
}

Todos

Romakita commented 2 months ago

:tada: This PR is included in version 7.81.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: