klinki
February 23, 2018, 4:48pm
1
Hi guys,
I’m trying to make application using firebase auth with redirect authentication. But I have a problem with handling after auth redirect. I get stuck on login page and it doesn’t actually log user in.
Could you please look what am I doing wrong? Thanks
authorize-step.ts
import { autoinject } from 'aurelia-framework';
import { Redirect } from 'aurelia-router';
import { FirebaseAuthService } from '../shared/firebase/authentication.service';
@autoinject()
export class AuthorizeStep {
protected static LOGIN_ADDRESS = '/login';
constructor(protected auth: FirebaseAuthService) {
This file has been truncated. show original
firebase-auth-service.ts
import { EventAggregator } from 'aurelia-event-aggregator';
import { autoinject } from 'aurelia-framework';
import { AuthenticationMessage } from '../../auth/messages';
import { firebase } from './firebase-mock';
import { FirebaseBaseService } from './firebase-base.service';
@autoinject()
export class FirebaseAuthService extends FirebaseBaseService {
protected auth: any;
This file has been truncated. show original
firebase-base-service.ts
import { FirebaseAuthService } from './authentication.service';
import { firebase } from "./firebase-mock";
import environment from "../../environment";
export class FirebaseBaseService {
protected static isInitialized = false;
public constructor() {
FirebaseBaseService.initialize();
}
This file has been truncated. show original