Is there anything i can do programmatically to prevent legacy google third party cookies prompt on google auth?

Description of the issue:
I have an app that includes google authentication and sometimes i get a prompt asking if i want to proceed with legacy third party cookies of google even though i implemented the feature with the most recent guide. I wonder if there is a programmatical way to prevent this? Any help or suggestion is appreciated. Thanks in advance. :slight_smile:

Brave Version: 1.62.153