Skip to content

Commit a2ee25d

Browse files
authored
fix(auth): Auth config for initializeApp (#428)
* fix(auth): Auth config for initializeApp * mend
1 parent ab80954 commit a2ee25d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"test:watch": "karma start",
1010
"build": "rm -rf dist; tsc",
1111
"build:watch": "rm -rf dist && tsc -w",
12-
"build_npm": "rm -rf dist && ngc -p tsconfig.publish.es5.json && ngc -p tsconfig.publish.es6.json",
13-
"postbuild_npm": "cp manual_typings/firebase3/firebase3.d.ts package.json README.md .npmignore dist/ && npm run rewrite_npm_package",
12+
"build_npm": "rm -rf dist && ngc -p tsconfig.publish.es5.json && ngc -p tsconfig.publish.es6.json && npm run postbuild_npm",
13+
"postbuild_npm": "cp package.json README.md .npmignore dist/ && npm run rewrite_npm_package",
1414
"rewrite_npm_package": "node --harmony_destructuring tools/rewrite-published-package.js",
1515
"e2e_test": "webdriver-manager update && npm run build_e2e && protractor",
1616
"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/",

src/angularfire2.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { initializeApp } from 'firebase';
22
import * as utils from './utils';
33
import { FirebaseAppConfig } from './interfaces';
4+
import { AuthConfiguration } from './auth';
45
import {
56
FirebaseListFactoryOpts,
67
FirebaseObjectFactoryOpts,
@@ -109,7 +110,7 @@ export const defaultFirebase = (config: FirebaseAppConfig): any => {
109110
providers: FIREBASE_PROVIDERS
110111
})
111112
export class AngularFireModule {
112-
static initializeApp(config: FirebaseAppConfig, authConfig?:FirebaseAppConfig): ModuleWithProviders {
113+
static initializeApp(config: FirebaseAppConfig, authConfig?:AuthConfiguration): ModuleWithProviders {
113114
return {
114115
ngModule: AngularFireModule,
115116
providers: [

src/auth/auth_backend.ts

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export enum AuthMethods {
3737
export interface AuthConfiguration {
3838
method?: AuthMethods;
3939
provider?: AuthProviders;
40-
remember?: string;
41-
scope?: string[];
4240
}
4341

4442
export interface FirebaseAuthState {

0 commit comments

Comments
 (0)