Skip to content

Commit ca51b5c

Browse files
author
Nicolas Garnier
committed
Published 1.06
1 parent 900fa21 commit ca51b5c

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

dist/FirebaseAuth.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/FirebaseAuth.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ firebase.initializeApp(config);
9292

9393
class SignInScreen extends React.Component {
9494

95+
state = {
96+
signedIn: false // Local signed-in state.
97+
};
98+
9599
// Configure FirebaseUI.
96100
uiConfig = {
97101
// Popup signin flow rather than redirect flow.
@@ -105,15 +109,11 @@ class SignInScreen extends React.Component {
105109
callbacks: {
106110
signInSuccess: () => {
107111
this.setState({signedIn: true});
108-
return false;
112+
return false; // Avoid redirects after sign-in.
109113
}
110114
}
111115
};
112116

113-
state = {
114-
signedIn: false
115-
};
116-
117117
render() {
118118
if (!this.state.signedIn) {
119119
return (

dist/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
],
1414
"main": "index.js",
1515
"scripts": {
16-
"build": "babel src --out-dir dist -s; cp README.md LICENSE package.json dist",
17-
"pack": "npm run build && cd dist && npm install --only=production && npm pack"
16+
"build": "babel src --out-dir dist -s; cp README.md LICENSE package.json dist; cd dist && npm install --only=production",
17+
"publish": "npm run build && cd dist && npm publish"
1818
},
1919
"author": "Google",
2020
"repository": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-firebaseui",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "React wrapper for firebaseui: Javascript library for customizable UI on top of Firebase SDK",
55
"files": [
66
"FirebaseAuth.js",

0 commit comments

Comments
 (0)