Fix issue where existing oauth accounts weren’t recognised.