diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 90e326a4df..b16930e819 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -177,6 +177,7 @@ import { OrcidQueueService } from './orcid/orcid-queue.service'; import { OrcidHistoryDataService } from './orcid/orcid-history-data.service'; import { OrcidQueue } from './orcid/model/orcid-queue.model'; import { OrcidHistory } from './orcid/model/orcid-history.model'; +import { OrcidAuthService } from './orcid/orcid-auth.service'; /** * When not in production, endpoint responses can be mocked for testing purposes @@ -305,6 +306,7 @@ const PROVIDERS = [ FeedbackDataService, ResearcherProfileService, ProfileClaimService, + OrcidAuthService, OrcidQueueService, OrcidHistoryDataService, ]; diff --git a/src/app/core/orcid/orcid-auth.service.ts b/src/app/core/orcid/orcid-auth.service.ts index 7b85dccd9c..cf7bc2b259 100644 --- a/src/app/core/orcid/orcid-auth.service.ts +++ b/src/app/core/orcid/orcid-auth.service.ts @@ -16,9 +16,7 @@ import { ResearcherProfile } from '../profile/model/researcher-profile.model'; import { URLCombiner } from '../url-combiner/url-combiner'; import { NativeWindowRef, NativeWindowService } from '../services/window.service'; -@Injectable({ - providedIn: 'root' -}) +@Injectable() export class OrcidAuthService { constructor(