I am using Moya 8.0.0.
How do i call back previous api?
Scenario : I have to call generate token api if any api gives token expiry code for token and after that i have to call the previously called api again which has responded me token expiry code.
Is there any way to handle this scenario in Moya or do i have to write my custom logic for it ?
Thanks in advance
Hi @Mridul56
There is some other issues about retrying requests when auth fails. Please, take a look at
How to add extension to retry with OAuth?
Suclass MoyaProvider for token refreshing
Creating a PluginType to handle request reauthentication
Can I re-throw Moya error or how to process errors of several async requests
[Help] OAuth2 Authentication using Moya
Let us know if you need any help.
@pietrocaselani that was a great answer. We should investigate if we can start sorting our knowledge base better to add a note to the ISSUE_TEMPLATE to check some sort of frequently asked issue section.
EDIT: Tracking over at https://github.com/orgs/Moya/teams/contributors/discussions/1
This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 馃檹 Also, feel free to open a new issue if you still experience this problem 馃憤.
Most helpful comment
Hi @Mridul56
There is some other issues about retrying requests when auth fails. Please, take a look at
How to add extension to retry with OAuth?
Suclass MoyaProvider for token refreshing
Creating a PluginType to handle request reauthentication
Can I re-throw Moya error or how to process errors of several async requests
[Help] OAuth2 Authentication using Moya
Let us know if you need any help.