Fix dynamic typing of external login provider