Skip to content

Commit a74513a

Browse files
authored
Fix example FBLogin in README.md
The `.auth` was missing in the example for the Facebook Login. It throws an error if you copy/paste the example and run it `firestack.signInWithProvider is not a function`.
1 parent 03aab39 commit a74513a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ var Login = React.createClass({
382382
console.log("Logged in!");
383383
console.log(data);
384384
let token = data.credentials.token
385-
firestack.signInWithProvider('facebook', token, '') // facebook need only access token.
385+
firestack.auth.signInWithProvider('facebook', token, '') // facebook need only access token.
386386
.then((user)=>{
387387
console.log(user)
388388
})

0 commit comments

Comments
 (0)