Skip to content

Commit 72acd19

Browse files
author
Ari
committed
Updates
2 parents 4e0f4e3 + 2d53534 commit 72acd19

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ios/OAuthManager/OAuthManager.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,12 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
490490
} else {
491491
NSInteger statusCode = response.statusCode;
492492
NSData *rawData = response.data;
493+
NSDictionary *headers = response.HTTPHeaders;
493494

494495
NSError *err;
495496
NSArray *data;
497+
498+
496499

497500
// Check if returned data is a valid JSON
498501
// != nil returned if the rawdata is not a valid JSON
@@ -514,9 +517,11 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
514517
};
515518
callback(@[errResp]);
516519
} else {
520+
517521
NSDictionary *resp = @{
518522
@"status": @(statusCode),
519-
@"data": data != nil ? data : @[]
523+
@"data": data != nil ? data : @[],
524+
@"headers": headers,
520525
};
521526
callback(@[[NSNull null], resp]);
522527
}

0 commit comments

Comments
 (0)