in sample/authui/src/app/app.component.ts [64:82]
constructor(private resolver: ComponentFactoryResolver) {
this.progressBarTimer = null;
// Fetch configuration via reserved Firebase Hosting URL.
fetch('/__/firebase/init.json').then((response) => {
return response.json();
})
.then((config) => {
this.config = config;
this.ciapInstance = new ciap.Authentication(this);
this.ciapInstance.start();
this.ciapInstance.getOriginalURL().then((originalUrl) => {
this.link = `/${window.location.search}`;
this.originalUrl = originalUrl;
}).catch((error) => {
this.link = `/${window.location.search}`;
this.originalUrl = 'N/A';
});
});
}