Mongodb Realm Authentication cross Subdomains

Hello! ,I’m trying to persist user state cross subdomains in browser using realm-web SDK. for example,
where user login example.com and visits subdomain.example.com without the need to login again.

is there a way to achieve this using realm-web ?

thanks,