• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

damienbod / angular-auth-oidc-client / 9308899843

30 May 2024 08:37PM CUT coverage: 92.928%. Remained the same
9308899843

Pull #1948

github

web-flow
Merge 9ccb2c964 into 33372edf1
Pull Request #1948: feat(core): adds angular 18 support

706 of 826 branches covered (85.47%)

Branch coverage included in aggregate %.

2566 of 2695 relevant lines covered (95.21%)

8.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/projects/angular-auth-oidc-client/src/lib/flows/reset-auth-data.service.ts
1
import { Injectable, inject } from '@angular/core';
2
import { AuthStateService } from '../auth-state/auth-state.service';
3
import { OpenIdConfiguration } from '../config/openid-configuration';
4
import { LoggerService } from '../logging/logger.service';
5
import { UserService } from '../user-data/user.service';
6
import { FlowsDataService } from './flows-data.service';
7

8
@Injectable({ providedIn: 'root' })
9
export class ResetAuthDataService {
1✔
10
  private readonly loggerService = inject(LoggerService);
3✔
11

12
  private readonly userService = inject(UserService);
3✔
13

14
  private readonly flowsDataService = inject(FlowsDataService);
3✔
15

16
  private readonly authStateService = inject(AuthStateService);
3✔
17

18
  resetAuthorizationData(
19
    currentConfiguration: OpenIdConfiguration | null,
20
    allConfigs: OpenIdConfiguration[]
21
  ): void {
22
    if (!currentConfiguration) {
2!
23
      return;
×
24
    }
25

26
    this.userService.resetUserDataInStore(currentConfiguration, allConfigs);
2✔
27
    this.flowsDataService.resetStorageFlowData(currentConfiguration);
2✔
28
    this.authStateService.setUnauthenticatedAndFireEvent(
2✔
29
      currentConfiguration,
30
      allConfigs
31
    );
32

33
    this.loggerService.logDebug(
2✔
34
      currentConfiguration,
35
      'Local Login information cleaned up and event fired'
36
    );
37
  }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc