Hi there,
I've been converting an app from the "old" api to the scene graph format. I've got the main scene working, as well as the oauth flow (according to the auth-linking-channel sample).
Now I'm just stumped on how to connect the two, as in pass the oauth token from the oauth scene to the main scene. I'm pretty new, so not sure what the recommended flow is:
1. Create the auth scene first, and when successful load the main scene, and somehow pass the token (global variable etc).
2. Embed the auth scene in the main scene, and hide the main stuff until the auth is done, then hide auth
3. Try to read the auth from the registry through the main scene
It seems weird that for every start of the app (after the initial auth), I'd have to create the auth scene, just to see if the user was previously auth'ed? Appreciate any help or a sample on how this flow usually works in a scene graph app. Thanks much!