True if a User ID is stored in local storage. False if no User ID is in local storage.
Returns boolean
login
login(email: string, password: string): void
Checks if User details email and password match a record in the database. If Login is valid, redirect to
'/homepage', else redirect to '/login' web page.
Parameters
email: string
Email address of User logging in
password: string
Password of User logging in
Returns void
logout
logout(): void
Logs a User out by deleting their ID and eMail in local storage and then redirects to the '/login' web page.
A base class for the Authentication Service