Proxy pass auth request to firebaseapp

Hi all, our application is a nuxt 3 static app running on cloudflare pages with sign in google (firebase redirect), but recently as browser starting to adopt storage partition, which makes cross domain auth storage blocked. We are trying to use this solution In short, proxy pass auth request from our domain to firebaseapp domain, same as below nginx config

# reverse proxy for signin-helpers for popup/redirect sign in.location /__/auth {  proxy_pass https://<project>;}

is this achievable using cloudflare redirect? or we need implement it in worker? I’ve read this but still have no clue how to do it properly.
Thanks a lot!