Coder Social home page Coder Social logo

oauth_dio's People

Contributors

desconexo avatar eloyleonardo avatar hsul4n avatar janosgy avatar leynier avatar lucas-buchalla-sesti avatar lucas-sesti avatar salomaosnff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

oauth_dio's Issues

[ Concurrent API calls ]

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

documentation and/or demo server request

This did not seem to "just work" for me. I admit it's probably user error, but there's not much to mess up.
do you have a demo server (twitter isn't a good choice anymore) you recommend or curl commands to compare with or both?

thanks

Dio() not included?

Hello,

It seems that Dio() ist not available, even after import...

import 'package:oauth_dio/oauth_dio.dart';
final authenticadedDio = Dio(); authenticadedDio.interceptors.add(BearerInterceptor(oauth));

in pubspec.yaml dependencies:

oauth_dio: ^0.2.7

Null Safety and Dio

Null safety requires dio: ^4.0.0-prev3 and this package requires ^3.0.9. Just a heads up since everyone is starting the switch.

Great plugin btw!

Pb using FlutterSecureStorage

Exemple provided with the application using FlutterSecureStorage seems not correct.

  • The "Save" method of the SecureStorage does not take the expiration into account.
  • OAuthToken does not have constructor with params

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.