FRP (Factory Reset Protection) is Android's anti-theft lock. After a reset the phone asks for the last Google account that was signed in.
1. Sign in with the previous Google account
This is the only official way. Enter the same email and password that was on the phone before the reset.
2. Forgot the password?
Go to g.co/recover on any device and follow the steps to recover the account. After a password change, wait about 24 to 72 hours before signing in on the reset phone, or Google may block it for security.
3. Remove the phone from the account first (if you still have access)
On another device go to myaccount.google.com, then Security, then Your devices, and sign the phone out. Then reset it.
4. Selling or giving away a phone?
Remove your Google account (Settings, then Accounts) before the factory reset, so the next owner isn't locked out.
For shops: only help unlock phones when the customer can prove ownership (receipt, box with matching IMEI, or the original account). This protects you from handling stolen phones.