Current events being what they are, I realized that adskApp.userName (in the JS API) returns "" when Fusion360 is offline. However, adskApp.userId returns a random looking string. Is there any documentation about user info when offline?
Solved! Go to Solution.
Solved by ekinsb. Go to Solution.
There's not documentation related to the API about difference in behavior between online and offline. It would probably be nice to have but would take some testing to know. The API is calling internal functions and we're getting whatever the behavior of these functions is so it's nothing something that's designed on the API side.
As far as user related information it looks like the only thing available is the userId. It's the unique ID that's used to look up everything else so it makes sense that it's still available locally. The userId isn't of much use to developers in most cases. There is one important use though and that's the reason it is exposed. The Autodesk App Store supports a web service where an app can query the store with the ID of the app and the user ID to verify that the user is a valid user for that app. You can read more about that here.