Skip to content

Export FUSIONAUTH_SERVICE_CONFIG injection token in the public api#184

Open
alikdelrisco wants to merge 1 commit intoFusionAuth:mainfrom
alikdelrisco:feat/export-angular-config-token
Open

Export FUSIONAUTH_SERVICE_CONFIG injection token in the public api#184
alikdelrisco wants to merge 1 commit intoFusionAuth:mainfrom
alikdelrisco:feat/export-angular-config-token

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