Nice article! I am refactoring my authentication flow based on this article. I was wondering; in de login method you seem to set the User twice. Once in the login itself, and then it throws the login-event through the local file system, which sets the user again. Why?

PHP developer, groep6, @vakantiespelen, pa, Hauwertiaanse Horinees, vriend, grote broer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store