mappedin.js now saves the token when logging in