Skip to content

Commit

Permalink
fix(auth): Auth config for initializeApp (#428)
Browse files Browse the repository at this point in the history
* fix(auth): Auth config for initializeApp

* mend
  • Loading branch information
davideast authored Aug 12, 2016
1 parent ab80954 commit a2ee25d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"test:watch": "karma start",
"build": "rm -rf dist; tsc",
"build:watch": "rm -rf dist && tsc -w",
"build_npm": "rm -rf dist && ngc -p tsconfig.publish.es5.json && ngc -p tsconfig.publish.es6.json",
"postbuild_npm": "cp manual_typings/firebase3/firebase3.d.ts package.json README.md .npmignore dist/ && npm run rewrite_npm_package",
"build_npm": "rm -rf dist && ngc -p tsconfig.publish.es5.json && ngc -p tsconfig.publish.es6.json && npm run postbuild_npm",
"postbuild_npm": "cp package.json README.md .npmignore dist/ && npm run rewrite_npm_package",
"rewrite_npm_package": "node --harmony_destructuring tools/rewrite-published-package.js",
"e2e_test": "webdriver-manager update && npm run build_e2e && protractor",
"build_e2e": "rm -rf dist-test && npm run build && tsc -p test/ && cp test/e2e/firebase_object/index.html dist-test/e2e/firebase_object/ && cp test/e2e/firebase_list/index.html dist-test/e2e/firebase_list/ && cp test/e2e/auth/index.html dist-test/e2e/auth/",
Expand Down
3 changes: 2 additions & 1 deletion src/angularfire2.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { initializeApp } from 'firebase';
import * as utils from './utils';
import { FirebaseAppConfig } from './interfaces';
import { AuthConfiguration } from './auth';
import {
FirebaseListFactoryOpts,
FirebaseObjectFactoryOpts,
Expand Down Expand Up @@ -109,7 +110,7 @@ export const defaultFirebase = (config: FirebaseAppConfig): any => {
providers: FIREBASE_PROVIDERS
})
export class AngularFireModule {
static initializeApp(config: FirebaseAppConfig, authConfig?:FirebaseAppConfig): ModuleWithProviders {
static initializeApp(config: FirebaseAppConfig, authConfig?:AuthConfiguration): ModuleWithProviders {
return {
ngModule: AngularFireModule,
providers: [
Expand Down
2 changes: 0 additions & 2 deletions src/auth/auth_backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ export enum AuthMethods {
export interface AuthConfiguration {
method?: AuthMethods;
provider?: AuthProviders;
remember?: string;
scope?: string[];
}

export interface FirebaseAuthState {
Expand Down

0 comments on commit a2ee25d

Please sign in to comment.