Use getAccessToken instead of getUsername.