With that number thing I made last night, I found NG's API logged people right on in without needing to go through Passport, which has been something the Trivial Trivia games has had to do for some time now. Funny thing is, I copied over all the NG stuff we use for those games and changed very little. So why does my number game sign people in automatically whereas trivial trivia doesn't?
I figured it out.
My numbers game has one HTML file - an index.html that handles literally everything. It's a pretty simple game tbh. This project never navigates from this html page as everything is either baked into that file or called into it.
Trivial trivia is a little more complex - here's the root dir we got going on there:
the index.html here is that white page with a play button. We mainly have this page so Chrome doesn't block music playback due to no user inactivity (this will happen unless the user clicks or touches something inside the game before music starts up). This index page also create some localstorage stuff before you get to the title screen. We don't make any NG api calls outside of the stage_title.html page in Trivial Trivia due to it really not being needed elsewhere, but that's introduced our little problem as it turns out...
if we make the calls on the index.html file, the game logs you in successfully and we're good to go. However, navigating away from this page to the stage_title.html page requires you to sign in again. I can't see TT being made into one big whopper of an html file, so NG passport login will just be how it has to be done it seems.
Maybe with my next procrastination game I can toss a fix into the TT side of things, until then I hope you enjoyed this ramble and brief look into my chaotic mess of a mind!