Commit 6770e120 authored by tiven wang's avatar tiven wang 🤞

Update application.ts appEnv.isLocal

parent 9eefd53e
......@@ -23,13 +23,13 @@ class App {
this.app.use(express.json());
this.app.use(express.urlencoded({ extended: false }));
// if(appEnv.port) {
if(!appEnv.isLocal) {
const services = xsenv.getServices({ uaa:'my-xsuaa' });
passport.use(new JWTStrategy(services.uaa));
this.app.use(passport.initialize());
this.app.use(passport.authenticate('JWT', { session: false }));
// }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment