app->set( UserRepositoryInterface::class, UserRepository::class ); $this->registerIdentityProviderFactory(); } private function registerIdentityProviderFactory(): void { if ($this->isGoogleSSOEnabled) { $this->factory ->register( 'google', GoogleIdentityProvider::class ); } if ($this->isFacebookSSOEnabled) { $this->factory ->register( 'facebook', FacebookIdentityProvider::class ); } if ($this->isLinkedInSSOEnabled) { $this->factory->register( 'linkedin', LinkedInIdentityProvider::class ); } if ($this->isGithubSSOEnabled) { $this->factory->register( 'github', GithubIdentityProvider::class ); } $this->app->set( IdentityProviderFactoryInterface::class, $this->factory ); } }