canjs / can-connect-feathers

The FeathersJS client library for DoneJS and can-connect
https://canjs.com/doc/can-connect-feathers.html
MIT License
10 stars 4 forks source link

session states: null for non-auth #58

Closed ilyavf closed 7 years ago

ilyavf commented 7 years ago

We need 3 states for Session.current:

  1. null for non-authenticated;
  2. undefined for the initial value or when we are waiting for authentication;
  3. instance when we are successfully authenticated.