Can anyone see what I'm tying to do here, on a higher level, and give a suggestion?
I'm sorry but I feel like I've been posting this question for weeks now and still everyone's struggling with an answer.
I just want to make a 100% as simple as possible web app that people can use, that uses the SAFE API commands (starting with "/auth," like in this example above).
I'll try the ideas given here, but I didn't expect it to be this complex for everyone.
Just a html file and a js file that together, can make that "app authentication" popup thing happen on the launcher.
Thanks again for bearing with me guys!