Moya: how to call previous api on authentication failure?

Created on 8 Jan 2018  路  4Comments  路  Source: Moya/Moya

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

question stale

Most helpful comment

All 4 comments

@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 馃憤.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JianweiWangs picture JianweiWangs  路  3Comments

PlutusCat picture PlutusCat  路  3Comments

Tynox picture Tynox  路  3Comments

hamada147 picture hamada147  路  3Comments

syq7970 picture syq7970  路  3Comments