a way to check if google user is new vs calculated guess

How can I check if a user that signed in via google oauth is a new user that just signed in for the first time? it's easy to track this when it's email/password login, but unsure for google signin users

or should i just do a time comparison of the user's metadata. for ex: if supabase.auth.getUser().created_at is within 2 seconds of supabase.auth.getUser().last_sign_in_at then safe to assume it's a new user?
Was this page helpful?