eraseCredentials method typo