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