I had to install node-sass v4 to get the frontend to startup.
npm i node-sass@4
After doing this, I was able to login just fine. Changes I made:
- In
app.module.ts
, I added my Okta settings and changed the redirect URI towindow.location.origin + '/callback'
. I also removedOktaAuthGuard
from the providers list. - In
app-routing.module.ts
, I changed theusers
route tocallback
.{ path: 'callback', component: OktaCallbackComponent }
- Now, when I navigate to
http://localhost:4200/home
, it says “user-details works!” and returns data from the backend in my console.