|
@ -1,6 +1,5 @@ |
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; |
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; |
|
|
|
|
|
|
|
|
import { inject } from '@angular/core'; |
|
|
|
|
|
import { Injectable, Logger } from '@nestjs/common'; |
|
|
import { Injectable, Logger } from '@nestjs/common'; |
|
|
import { PassportStrategy } from '@nestjs/passport'; |
|
|
import { PassportStrategy } from '@nestjs/passport'; |
|
|
import { Provider } from '@prisma/client'; |
|
|
import { Provider } from '@prisma/client'; |
|
@ -10,10 +9,10 @@ import { AuthService } from './auth.service'; |
|
|
|
|
|
|
|
|
@Injectable() |
|
|
@Injectable() |
|
|
export class GoogleStrategy extends PassportStrategy(Strategy, 'google') { |
|
|
export class GoogleStrategy extends PassportStrategy(Strategy, 'google') { |
|
|
private readonly authService = inject(AuthService); |
|
|
public constructor( |
|
|
|
|
|
private readonly authService: AuthService, |
|
|
public constructor() { |
|
|
configurationService: ConfigurationService |
|
|
const configurationService = inject(ConfigurationService); |
|
|
) { |
|
|
super({ |
|
|
super({ |
|
|
callbackURL: `${configurationService.get( |
|
|
callbackURL: `${configurationService.get( |
|
|
'ROOT_URL' |
|
|
'ROOT_URL' |
|
|