I'm trying to migrate a custom based controller API based on express to TSOA framework. I was using passport to handle authentication before.
How can I use it with TSOA? It seems to be ignored.
I'm trying to migrate a custom based controller API based on express to TSOA framework. I was using passport to handle authentication before.
How can I use it with TSOA? It seems to be ignored.
Copyright © 2021 Jogjafile Inc.
I think that you need just to add
app.use(passport.authenticate('jwt'));aboveRegisterRoutes(app);in your (propbaly)server.tsfile.Like this: