Search code examples
oauthsdkoauth-2.0swaggerauto-generate

Can Swagger Code Gen SDKs handle OAuth token refresh?


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?


Solution

  • 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.