import {IAuthUser} from '@bleco/authentication'; import {Provider} from '@loopback/context'; import * as GoogleStrategy from 'passport-google-oauth20'; import {GooglePostVerifyFn} from './types'; export class GooglePostVerifyProvider implements Provider { value(): GooglePostVerifyFn { return async (profile: GoogleStrategy.Profile, user: IAuthUser | null) => user; } }