oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

[ Concurrent API calls ]

Open Gobmichet opened this issue 1 year ago • 0 comments

Hi, Thanks for the work,

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

  • I have a home_page.dart with 3 sections.
  • Each section is filled with datas coming from separate / specific API calls.
  • We then have smtg like this :
@override
  void initState() {
    super.initState();
    <ApiCall_1>
    <ApiCall_2>
    <ApiCall_3>
  }

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 (^_^)

Gobmichet avatar Feb 21 '24 13:02 Gobmichet