simplifying library interface by combining tokens and secrets into a pair object