Refactoring TypeScript by James Hickey

Refactoring TypeScript by James Hickey

Author:James Hickey
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2019-10-17T16:00:00+00:00


In our scenario, we're working on a web application that helps clients to sell their used items online.

We've been asked to add some extra rules around the part of our system that authenticates users.

Right now, the system only checks whether a user was successfully authenticated:

const isAuthenticated: boolean = await userIsAuthenticated(username, password);

if(isAuthenticated) {

redirectToUserDashboard();

} else {

returnErrorOnLoginPage("Credentials are not valid.");

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.