refactor the retrieval of the secret token in it's own object