Added login based on jwt tokens instead of sessions.