Generates and resets user authentication token.