import { LoginProvider } from '../interfaces/login-provider.interface' ; import { SocialUser } from './social-user.class' ; export abstract class BaseLoginProvider implements LoginProvider { constructor ( ) { } abstract initialize ( ) ; abstract signIn ( ) ; abstract signOut ( ) ; loadScript ( id , src , onload ) { if ( document . getElementById ( id ) ) { return ; } const signInJS = document . createElement ( 'script' ) ; signInJS . async = true ; signInJS . src = src ; signInJS . onload = onload ; document . head . appendChild ( signInJS ) ; } }