@jedp - couldn't you just pass options.origin as origin? I'm not following this logic fully.

FWIW, in #3630, I am ripping out requiredEmail. See https://github.com/mozilla/browserid/pull/3630/files#L3L121.