How I set up iPhone security so hackers stay out

I did something really stupid the other night while scrolling TikTok.