Skip to content

Commit eadb563

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 7b18309 + dc5e529 commit eadb563

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/api/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

ios/Firestack/FirestackAuth.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)