Allow credentials to be nil.