I see what the issue is. The problem is , its a mismatched structure of the profile. Google doesnt return a login or bio by default. This exists more in Github profile responses so thats why ur code fails. This would work..
async signIn({ user, account, profile }) {try {const { name, email, image } = user; const id = profile.sub; //this is the correct field from Google