下面有一个单例API管理器类,用于为我的应用程序创建一个共享的“通过身份验证的”Alamofire会话。interceptor to all API calls let interceptor = AuthenticationInterceptorAlamofire在必要时刷新令牌方面为我做了繁重的工作,然而,有一种
我对AlamoFire5.2中添加的AuthenticationInterceptor有一个问题。我使用AuthenticationInterceptor刷新oAuth令牌。 let userID: String
// Require refresh if within 5minutes of expi