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