You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make `Request.payload` modifiable
* Add `parameter` to `credentials` in `CredentialsManager`
* rename `parameter` -> `parameters`
* use spaces instead of tabs for formatting
* add Comments for parameters
* use spaces on comment
* rename `payload` to `parameters`
* add tests to read and modify payload on renew
* update override Test
* add test to verify that copied object contains the same information
* Fix several typos and improve API readability
* Add test to check if parameters are passed through the HTTP-layer
* Update Auth0/CredentialsManager.swift
* Update Auth0Tests/CredentialsManagerSpec.swift
* Update Auth0/Request.swift
Co-authored-by: Rita Zerrizuela <[email protected]>
// TODO: On the next major add a new case to CredentialsManagerError
219
-
leterror=NSError(domain:"The lifetime of the renewed Access Token (\(accessTokenLifetime)s) is less than minTTL requested (\(minTTL)s). Increase the 'Token Expiration' setting of your Auth0 API in the dashboard or request a lower minTTL",
// TODO: On the next major add a new case to CredentialsManagerError
223
+
leterror=NSError(domain:"The lifetime of the renewed Access Token (\(accessTokenLifetime)s) is less than minTTL requested (\(minTTL)s). Increase the 'Token Expiration' setting of your Auth0 API in the dashboard or request a lower minTTL",
224
+
code:-99999,
225
+
userInfo:nil)
226
+
callback(.failedRefresh(error),nil)
227
+
}else{
228
+
_ =self.store(credentials: newCredentials)
229
+
callback(nil, newCredentials)
230
+
}
231
+
case.failure(let error):
222
232
callback(.failedRefresh(error),nil)
223
-
}else{
224
-
_ =self.store(credentials: newCredentials)
225
-
callback(nil, newCredentials)
226
233
}
227
-
case.failure(let error):
228
-
callback(.failedRefresh(error),nil)
229
234
}
230
-
}
231
235
}
232
236
233
237
func willExpire(_ credentials:Credentials, within ttl:Int)->Bool{
0 commit comments