Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add guard autoLoginPartialRoutesGuardWithConfig for specific configurations #2000

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

kyubisation
Copy link
Contributor

It is currently not possible to use the login guard for multiple configurations, as the current guard will only check the first configuration. This PR adds autoLoginPartialRoutesGuardWithConfig, which accepts a parameter and returns a guard function.

  ...
  {
    ...
    canActivate: [autoLoginPartialRoutesGuardWithConfig('myConfig')],
  },

@FabianGosebrink
Copy link
Collaborator

Thanks for the PR and the update of the GH Actions :)

@FabianGosebrink FabianGosebrink merged commit 20ac4eb into damienbod:main Sep 18, 2024
9 checks passed
@kyubisation kyubisation deleted the feat-guard-config branch September 18, 2024 12:39
@timdeschryver timdeschryver mentioned this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants