File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class Example extends React.Component {
2626 }
2727
2828 componentDidMount () {
29- this .unsubscribe = firebase .auth ().onAuthStateChanged ((user ) => {
29+ this .unsubscribe = firestack .auth ().onAuthStateChanged ((user ) => {
3030 if (user) {
3131 // User is signed in.
3232 }
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ @implementation FirestackAuth
137137 sendJSEvent: AUTH_CHANGED_EVENT
138138 props: @{
139139 @" eventName" : @" userTokenError" ,
140- @" msg" : [error localizedFailureReason ]
140+ @" msg" : [error localizedDescription ]
141141 }];
142142 } else {
143143 [self
@@ -480,9 +480,7 @@ - (void) sendJSEvent:(NSString *)title
480480
481481- (void ) userCallback : (RCTResponseSenderBlock) callback
482482 user : (FIRUser *) user {
483- NSDictionary *userProps = @{
484- @" user" : [self userPropsFromFIRUser: user]
485- };
483+ NSDictionary *userProps = [self userPropsFromFIRUser: user];
486484 callback (@[[NSNull null ], userProps]);
487485}
488486
You can’t perform that action at this time.
0 commit comments