File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -203,15 +203,11 @@ - (void)refreshWithConfiguration: (OIDServiceConfiguration *)configuration
203
203
* Take raw OIDTokenResponse and turn it to a token response format to pass to JavaScript caller
204
204
*/
205
205
- (NSDictionary *)formatResponse : (OIDTokenResponse*) response {
206
- NSDate *expirationDate = response.accessTokenExpirationDate ?
207
- response.accessTokenExpirationDate : [NSDate alloc ];
208
-
209
206
NSDateFormatter *dateFormat = [[NSDateFormatter alloc ] init ];
210
207
[dateFormat setDateFormat: @" yyyy-MM-dd'T'HH:mm:ssZ" ];
211
- NSString *expirationDateString = [dateFormat stringFromDate: expirationDate];
212
-
208
+
213
209
return @{@" accessToken" : response.accessToken ? response.accessToken : @" " ,
214
- @" accessTokenExpirationDate" : expirationDateString ,
210
+ @" accessTokenExpirationDate" : response. accessTokenExpirationDate ? [dateFormat stringFromDate: response.accessTokenExpirationDate] : @" " ,
215
211
@" additionalParameters" : response.additionalParameters ,
216
212
@" idToken" : response.idToken ? response.idToken : @" " ,
217
213
@" refreshToken" : response.refreshToken ? response.refreshToken : @" " ,
You can’t perform that action at this time.
0 commit comments