Skip to content

Commit

Permalink
Adds $firebaseAuth init example to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
abeisgoat committed Jun 2, 2016
1 parent fc6a08d commit a088284
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/migration/1XX-to-2XX.md
Expand Up @@ -24,7 +24,17 @@ for details on how to upgrade to the Firebase `3.x.x` SDK.

## `$firebaseAuth` Method Renames / Signature Changes

Initializing `$firebaseAuth` has changed to accept a Firebase `auth` instance (or nothing)
Initializing `$firebaseAuth` has changed to accept an optional Firebase `auth` instance.

```js
// Old
$firebaseAuth(ref)

// New
$firebaseAuth()
// Or if you need to explicitly provide an auth instance
$firebaseAuth(firebase.auth())
```

Several authentication methods have been renamed and / or have different method signatures:

Expand Down

0 comments on commit a088284

Please sign in to comment.