Javascript 如何使用firebase身份验证跨域维护身份验证状态

Javascript 如何使用firebase身份验证跨域维护身份验证状态,javascript,firebase,firebase-authentication,Javascript,Firebase,Firebase Authentication,我现在正在使用firebase身份验证,我正在尝试创建一个网站,其中身份验证位于不同的域上,例如: www.example.com and subdomain.example.com both contain features They both redirect to accounts.example.com to login 如何维护域之间的身份验证状态

我现在正在使用firebase身份验证,我正在尝试创建一个网站,其中身份验证位于不同的域上,例如:

www.example.com
and
subdomain.example.com
both contain features

They both redirect to
accounts.example.com
to login
如何维护域之间的身份验证状态