extract passport config to separate js file