Skip to content

Export FUSIONAUTH_SERVICE_CONFIG injection token in the public api #184

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alikdelrisco
Copy link

@alikdelrisco alikdelrisco commented May 21, 2025

Expose the FUSIONAUTH_SERVICE_CONFIG DI token to enable dynamic configuration via a useFactory function. This allows consumers to customize the FusionAuth service configuration at runtime.

Example usage:

imports: [FusionAuthModule],
providers: [
    {
      provide: FUSIONAUTH_SERVICE_CONFIG,
      useFactory: fusionAuthRemoteFactory,
      deps: [HttpClient],
    },
  ]

What is this PR and why do we need it?

#181

Pre-Merge Checklist (if applicable)

  • Unit and Feature tests have been added/updated for logic changes, or there is a justifiable reason for not doing so.

Expose the FUSIONAUTH_SERVICE_CONFIG DI token to enable dynamic configuration via a useFactory function.
This allows consumers to customize the FusionAuth service configuration at runtime.

Example usage:
imports: [FusionAuthModule],
providers: [
    {
      provide: FUSIONAUTH_SERVICE_CONFIG,
      useFactory: fusionAuthRemoteFactory,
      deps: [HttpClient],
    },
  ]
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.

1 participant