I use Keycloak locally to authenticate my users and try to prevent them from accessing a protected route.
This is my routes.js
routes.js
let initOpt