问题
Can SDKs created by Swagger Code Gen (https://github.com/swagger-api/swagger-codegen) manage OAuth token refresh by storing and using a refresh token to automatically refresh an expired access token?
回答1:
Based on my understanding, clients generated bySwagger-Codegen do not support automatic refresh of token in any way.
You can submit a feature request here to see if the community has cycle to add the feature. Remember to provide details of your requirement and a sample spec if you've one.
来源:https://stackoverflow.com/questions/30342833/can-swagger-code-gen-sdks-handle-oauth-token-refresh