Hi,
Our goal is to make a generic login page that can be put before any app.
The login uses the google login, where you redirect to google select your gmail and then go back to the app and get validated. During the validation we check if the email is *@poki.com and if so we do the signup. Now all of this works perfectly.
Then we started to setup redirects and this is where we got stuck at the moment.
This is the _redirects on our page:
# Redirects from what the browser requests to what we serve
/scripts/login.js /scripts/login.js 200!
/* 200! Role=poki
/* /login 401!
So > if you go to any page and your not logged in, you bounce to login.html which has a script that renders a login button. You click it, log in and google bounces you back to /. The account creation works and it registers the login. I can even see the correct information on the login.html for the user. However it does not redirect to /index.html. Also not if I go directly to /index.html. It keeps on redirecting to /login.html. The weird thing is, if I wait for ~10 minutes and go back to the page it suddenly does work. But then when I logout and login again I experience the same issue.