timwis / dataface

Build and manage data with a spreadsheet-like interface
https://dataface-demo.herokuapp.com
43 stars 4 forks source link

Check for existing session on load #118

Closed timwis closed 7 years ago

timwis commented 7 years ago

Option 1

Query /api/user and consider the user logged in if 200; not logged in if 401. Also use profile information from that endpoint.

Option 2

Store login status / profile information in local storage, along with an expiration date. Upon receiving a 401 at any endpoint, consider user logged out.