11. Logging Users In

Published 6 months ago

There's not much use of creating users if they don't have a way to log back in after logging out. Logging in requires that a user submitted username and password match a username and password stored in the database. If a match is found, we create a session and return that session data to the frontend, else, we end the request with a 401 status code, meaning, authentication was unsuccessful.

Comments

Want to participate?

Create a free Chris Courses account to begin

or
Sign In

No comments yet, be the first to add one

Cheat Sheet Preview

Download The Official Chris Courses HTML5 Canvas Cheat Sheet

Essential canvas syntax at your fingertips.

Download Now

Providing the lift to launch your development career

© 2020 Chris Courses. All rights reserved.