diff --git a/apps/api/src/app/auth/google.strategy.ts b/apps/api/src/app/auth/google.strategy.ts index 98dd9eac1..02f82a7a8 100644 --- a/apps/api/src/app/auth/google.strategy.ts +++ b/apps/api/src/app/auth/google.strategy.ts @@ -1,6 +1,5 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; -import { inject } from '@angular/core'; import { Injectable, Logger } from '@nestjs/common'; import { PassportStrategy } from '@nestjs/passport'; import { Provider } from '@prisma/client'; @@ -10,10 +9,10 @@ import { AuthService } from './auth.service'; @Injectable() export class GoogleStrategy extends PassportStrategy(Strategy, 'google') { - private readonly authService = inject(AuthService); - - public constructor() { - const configurationService = inject(ConfigurationService); + public constructor( + private readonly authService: AuthService, + configurationService: ConfigurationService + ) { super({ callbackURL: `${configurationService.get( 'ROOT_URL'