BudgetSquirrel / BudgetTracker

Budget Tracker allows users to manage their money more efficiently. This API has endpoint to save, create, and manage your budgets and goals.
4 stars 0 forks source link

Create authenticate API endpoint #29

Closed ianmann56 closed 5 years ago

ianmann56 commented 5 years ago

User story: #12

The client will call this endpoint on login. If this authenticates, the client knows that the user will be authenticated for every subsequent API calls. There is no state on the API server that keeps a user logged in. Authentication is stateless on the server and so each subsequent API call will have to be re-validated.

The statelessness allows us to better synchronize the client and server on who is authenticated. It makes it so only one part of the stack needs to know who's currently logged in to a session. The API server doesn't need to do anything other than handle requests... so we won't make it store logged in sessions then.

Parameters:

Returns: