Open kangelopoulos opened 2 weeks ago
We need two pages in addition to the "to do list" screen - a /login page and a /create-account page.
The create account page should contain a form that prompts the user for
This will be sent to the database POST /user endpoint.
The login page should contain a form that prompts for:
This will also be sent as a POST request to /user/login.
A stretch goal for the future could be to integrate other forms of authentication (e.g. login with google account/etc).
just cookies for now? should we accept a jwt?
My plan is to use jwt from the start! It's pretty simple even for new folks. But a vanilla cookie lacks all security.
We need two pages in addition to the "to do list" screen - a /login page and a /create-account page.
The create account page should contain a form that prompts the user for
This will be sent to the database POST /user endpoint.
The login page should contain a form that prompts for:
This will also be sent as a POST request to /user/login.
A stretch goal for the future could be to integrate other forms of authentication (e.g. login with google account/etc).