fabbricadigitale / proauth.js

Automagically attach OAuth2's tokens to HTTP requests
MIT License
4 stars 0 forks source link

Session could be not set when login promise is fulfilled #27

Open leogr opened 7 years ago

leogr commented 7 years ago
proath.client.login("user", "qwerty").then(() => {
      // Even if fetching a request at this point should work properly...
      // but proauth.client.hasSession() is still false because setting session is async
})