angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Bug]: AutoLoginPartialRoutesGuard is not compatible with canLoad

Open TheMatrix97 opened this issue 5 months ago • 0 comments

Version

19.0.1

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

The current implementation of AutoLoginPartialRoutesGuard it's not compatible with `canLoad` guard, is highly coupled to `canActivate` and the deprecated `canLoad`.
https://github.com/damienbod/angular-auth-oidc-client/blob/5304cc1cdbd421876749a52577942856763e602d/projects/angular-auth-oidc-client/src/lib/auto-login/auto-login-partial-routes.guard.ts#L23

Steps to reproduce the behavior

-

A clear and concise description of what you expected to happen.

Provide support to canMatch https://angular.dev/api/router/CanMatch and update the documentation

Additional context

Thanks!

TheMatrix97 avatar Jul 17 '25 09:07 TheMatrix97