We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98540c commit 30fa5c9Copy full SHA for 30fa5c9
README.md
@@ -92,6 +92,10 @@ firebase.initializeApp(config);
92
93
class SignInScreen extends React.Component {
94
95
+ state = {
96
+ signedIn: false // Local signed-in state.
97
+ };
98
+
99
// Configure FirebaseUI.
100
uiConfig = {
101
// Popup signin flow rather than redirect flow.
@@ -105,15 +109,11 @@ class SignInScreen extends React.Component {
105
109
callbacks: {
106
110
signInSuccess: () => {
107
111
this.setState({signedIn: true});
108
- return false;
112
+ return false; // Avoid redirects after sign-in.
113
}
114
115
};
116
- state = {
- signedIn: false
- };
-
117
render() {
118
if (!this.state.signedIn) {
119
return (
0 commit comments