()
| 9 | passport.use(new XssecPassportStrategy(xsuaa)); |
| 10 | |
| 11 | async function bootstrap() { |
| 12 | const app = await NestFactory.create(AppModule); |
| 13 | app.use(passport.initialize()); |
| 14 | app.use(passport.authenticate('JWT', { session: false })); |
| 15 | await app.listen(process.env.PORT || 3000); |
| 16 | } |
| 17 | bootstrap(); |