I use firebase for authentication on my website and I want to keep the users auth session active across subdomains.
Unfortunately, firebase uses Local Storage to sto
I used NGINX to load diffrent web apps which want to share same firebase auth which works out of box in firebase if domain or sub domain is same.
server {
root /var/lib/jenkins/workspace/app/dist;
index index.html index.htm index.nginx-debian.html;
server_name app.com; # example
location /app1 {
alias /var/lib/jenkins/workspace/app1/dist;
try_files $uri $uri/ =404;
}
location /app2 {
alias /var/lib/jenkins/workspace/app2;
try_files $uri $uri/ =404;
}
location /static {
alias /var/lib/jenkins/workspace/build/static;
try_files $uri $uri/ =404;
}
location ~ /\.ht {
deny all;
}
listen 80;
listen [::]:80;
}