> If I get logged out of every website on a weekly basis I'm going to be annoyed.
Then those websites should move to Passkeys.
> How do they use first party cookies to track you?
Because Meta and Google allows websites to submit advertising data to them server side using a self-hosted JS file which sets the first party cookies on your behalf.