I\'m trying to write a hook to handle login in my React JS SPA.
Some "setup" information in case it\'s relevant: