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
203203 * Take raw OIDTokenResponse and turn it to a token response format to pass to JavaScript caller
204204 */
205205- (NSDictionary *)formatResponse : (OIDTokenResponse*) response {
206- NSDate *expirationDate = response.accessTokenExpirationDate ?
207- response.accessTokenExpirationDate : [NSDate alloc ];
208-
209206 NSDateFormatter *dateFormat = [[NSDateFormatter alloc ] init ];
210207 [dateFormat setDateFormat: @" yyyy-MM-dd'T'HH:mm:ssZ" ];
211- NSString *expirationDateString = [dateFormat stringFromDate: expirationDate];
212-
208+
213209 return @{@" accessToken" : response.accessToken ? response.accessToken : @" " ,
214- @" accessTokenExpirationDate" : expirationDateString ,
210+ @" accessTokenExpirationDate" : response. accessTokenExpirationDate ? [dateFormat stringFromDate: response.accessTokenExpirationDate] : @" " ,
215211 @" additionalParameters" : response.additionalParameters ,
216212 @" idToken" : response.idToken ? response.idToken : @" " ,
217213 @" refreshToken" : response.refreshToken ? response.refreshToken : @" " ,
You can’t perform that action at this time.
0 commit comments