Pass environment to the GetToken methods.