mauriciovigolo / keycloak-angular

Easy Keycloak setup for Angular applications.
MIT License
725 stars 278 forks source link

Blank page with angular with optimization: true #507

Closed alenap93 closed 1 year ago

alenap93 commented 1 year ago

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Versions.

Repro steps.

Hi, i have a problem with keycloak-angular library, when i build the app with parameter in angular.json optimization: true, after the login the spa does not works (show me a blank page) without any log in console/terminal.

This is my initOptions:

      initOptions: {
        pkceMethod: 'S256',
        enableLogging: true,
        redirectUri: 'http://localhost:4200',
        onLoad: 'check-sso',
        silentCheckSsoRedirectUri:
          window.location.origin + '/assets/auth/silent-check-sso.html'
      }
Cattura

The log given by the failure.

no log in console

alenap93 commented 1 year ago

Solved, it was a problem with a recursive code in the guard