routeAfterAuthentication is where to transition after a successful login.
routeIfAlreadyAuthenticated is where to go if the user is already authenticated and visits a page which makes no sense to visit if you’re logged in (login, register, a guest homepage, etc.)
The two config variables have different meanings but in some cases they might overlap, like in the Rock and Roll app. The important thing is to see how they differ.