Im Attemping to use the login through express, this is what I’ve added in server.js:
app.use(session({
secret: secret,
resave: true,
saveUninitialized: false
}));
As Express is the one that should be handling the callback, the redirect_uri in your code should be set to the appropriate callback route in the app, which in this case looks like it should be http://localhost:7171/authorization-code/callback
You will then need to ALSO add the exact same URI as a Sign-in redirect URI in the application configuration in Okta.
If you make those changes, do you still see the same error?
I believe by default the logout endpoint used by the SDK will be your appBaseUrl, so I would try setting it to that in the config and in Okta. That’s at least what our sample app does.