Skip to content

Fix InjectionToken types to allow new inject(Token) syntax to be used with msal-angular (#7653) #7745

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

Merged
merged 13 commits into from
Jul 2, 2025

Conversation

shylasummers
Copy link
Contributor

PR to run #7653 by @bradkovach against CI.

@github-actions github-actions bot added the msal-angular Related to @azure/msal-angular package label May 12, 2025
@shylasummers shylasummers marked this pull request as ready for review May 12, 2025 20:38
@shylasummers
Copy link
Contributor Author

Hi @bradkovach, we needed to make a new PR for your change since some pipeline checks will fail automatically on external PRs. This PR preserves the commit history of your previous PR.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Jun 16, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Attention 👋 Awaiting response from the MSAL.js team label Jul 1, 2025
tnorling
tnorling previously approved these changes Jul 1, 2025
This PR:

- Removes unused `CommonModule`
- Uses `styleUrl` instead of `styleUrls`
- Uses `inject` for DI
- Uses `takeUntilDestroyed` instead of `Subject/OnDestroy` approach
- Fixes indents

There is a typing issue, which is now solved by a generic in the
following line:
```ts
private msalGuardConfig = inject<MsalGuardConfiguration>(MSAL_GUARD_CONFIG);
```
I found a fix in the next PR:
#7484
After its merge, the generic can be removed:
```ts
private msalGuardConfig = inject(MSAL_GUARD_CONFIG);
```
@github-actions github-actions bot added the samples Related to the samples apps for the library. label Jul 1, 2025
@tnorling tnorling enabled auto-merge (squash) July 2, 2025 20:24
@tnorling tnorling merged commit ea6c026 into msal-v5 Jul 2, 2025
7 checks passed
@tnorling tnorling deleted the angularInjectionTokenFix branch July 2, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-angular Related to @azure/msal-angular package samples Related to the samples apps for the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants