import * as tnsOauth from './tns-oauth' ; import { AuthHelper } from './auth-helper' ; import * as TnsOAuth from './tns-oauth-interfaces' ; export class AuthHelperCustom extends AuthHelper implements TnsOAuth . ITnsAuthHelper { constructor ( credentials , private cookieDomains ) { super ( ) ; this . credentials = { } as any ; Object . assign ( this . credentials , credentials ) ; this . credentials . scope = credentials . scope . replace ( / /g , '%20' ) ; } public logout ( successPage ? ) { return this . _logout ( successPage , this . cookieDomains ) ; } }