Attempting to refactor the sdk passport calls so they can be reused.