andrew dibiasio
this needs to be added to the tutorial! i use <%- include(‘partials/nav.ejs’) %>
andrew dibiasio
this needs to be added to the tutorial! i use <%- include(‘partials/nav.ejs’) %>
Isaac Ibarra Echegollén
For anyone following this tutorial, if you get the Error: Unknown authentication strategy "oidc"
replace on index.ts src
app.listen(port, () => {
// tslint:disable-next-line:no-console
console.log(server started at http://localhost:${port}
);
});
with this
app.locals.oidc.on(“ready”, () => {
app.listen(port, () => {
// tslint:disable-next-line:no-console
console.log(server started at http://localhost:${port}
);
});
});
Thomas Hallock
Why is this tutorial written in typescript when:
* req
is set to type any
in every single express middleware handler? That affects about half the code here.
* the Okta OIDC middleware does not support typescript?
Maybe rename this tutorial: “how to disable typescript’s type checking so it won’t yell at you when using our express middleware library”.
For anybody running into EJS issues, this StackOverflow forum helped me - node.js - ejs - "Unexpected identifier" when using include in for loop - Stack Overflow
This is a great tutorial, but seems a bit out of date with recent version upgrades, particularly with respect to Vue. I am getting a lot of errors trying to implement Vue the way it is done here.
Thanks for the comment @mgzwarrior. This post is missing version numbers on its npm install
commands, so yes, it likely won’t work with the latest versions. I recently created a PR to update it for Node 14, but did not test it. I’ve added it to our backlog to get it updated with the latest versions.