... | ... | @@ -481,9 +481,9 @@ The name `PetstoreClientAPI.requestBuilderFactory` will change depending on your |
|
|
override func createSessionManager() -> SessionManager {
|
|
|
let sessionManager = super.createSessionManager()
|
|
|
|
|
|
let jwtHandler = BearerTokenHandler()
|
|
|
sessionManager.adapter = jwtHandler
|
|
|
sessionManager.retrier = jwtHandler
|
|
|
let bearerTokenHandler = BearerTokenHandler()
|
|
|
sessionManager.adapter = bearerTokenHandler
|
|
|
sessionManager.retrier = bearerTokenHandler
|
|
|
|
|
|
return sessionManager
|
|
|
}
|
... | ... | @@ -493,9 +493,9 @@ The name `PetstoreClientAPI.requestBuilderFactory` will change depending on your |
|
|
override func createSessionManager() -> SessionManager {
|
|
|
let sessionManager = super.createSessionManager()
|
|
|
|
|
|
let jwtHandler = BearerTokenHandler()
|
|
|
sessionManager.adapter = jwtHandler
|
|
|
sessionManager.retrier = jwtHandler
|
|
|
let bearerTokenHandler = BearerTokenHandler()
|
|
|
sessionManager.adapter = bearerTokenHandler
|
|
|
sessionManager.retrier = bearerTokenHandler
|
|
|
|
|
|
return sessionManager
|
|
|
}
|
... | ... | |