MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
274 stars 246 forks source link

[ Concurrent API calls ] #483

Open Gobmichet opened 9 months ago

Gobmichet commented 9 months ago

Hi, Thanks for the work,

What about concurrent calls ? I mean let's say for the exemple :

Won't this provoke refresh tokens infinite loop ? How to handle this ? How does your lib handle this ?

'cause Queue.lock( ) / .unlock( ) that would intervene on [ Error 401 ("token-expired") ] would trigger too late so...

Thanks in advance (^_^)