Hello,
So I’m trying to build API which works around JWT instead of sessions.
const app = express()
app.use(auth({
authRequired: false,
auth0Logout: true,
secret: '',
baseURL: 'http://localhost:8080',
clientID: ''',
issuerBaseURL: '',
routes: {
callback: "/auth/callback",
login: "/auth/login",
logout: "/auth/logout",
postLogoutRedirect:"http://localhost:8080/auth/logout/callback"
}
}));
app.use("/health", healthController)
app.use("/auth/logout/callback", (req: Request, res: Response) => {
res.json({message: req.oidc.isAuthenticated()})
})
app.get("/", (req: Request, res: Response) => {
res.redirect("http://localhost:3000/dashboard")
})
app.listen(8080, () => {
console.log("Application up and running")
})
But on making call to /oauth/token
it shows 404. Not able figure out I’m doing things correctly or not.