PlayFab / vscode-playfab-explorer

PlayFab Explorer extension for VS Code
Other
23 stars 10 forks source link

Sign-out on cloud change #44

Closed MGudgin closed 5 years ago

MGudgin commented 5 years ago

If the user changes the cloud setting, then if the user is signed in, we need to sign them out of the previous cloud.

Details

Add code to updateCloud to check if the cloud is actually changing. If it is, then check to see if we are signed in by checking for a session count that is greater than zero. If we are signed in, run the sign-out command. In either case, store the new cloud value. NOTE: We sign-out before storing the new cloud value because the cloud value affects the base URI for API calls.

Remove the cloud property from IPlayFabSession as it was not used.