@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414if ( ! PlayFab . _internalSettings ) {
1515 PlayFab . _internalSettings = {
1616 entityToken : null ,
17- sdkVersion : "1.154.230915 " ,
17+ sdkVersion : "1.156.230929 " ,
1818 requestGetParams : {
19- sdk : "JavaScriptSDK-1.154.230915 "
19+ sdk : "JavaScriptSDK-1.156.230929 "
2020 } ,
2121 sessionTicket : null ,
2222 verticalName : null , // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223 }
224224}
225225
226- PlayFab . buildIdentifier = "adobuild_javascriptsdk_114 " ;
227- PlayFab . sdkVersion = "1.154.230915 " ;
226+ PlayFab . buildIdentifier = "adobuild_javascriptsdk_8 " ;
227+ PlayFab . sdkVersion = "1.156.230929 " ;
228228PlayFab . GenerateErrorReport = function ( error ) {
229229 if ( error == null )
230230 return "" ;
@@ -1087,8 +1087,15 @@ PlayFab.ClientApi = {
10871087 // Deep-copy the authenticationContext here to safely update it
10881088 var authenticationContext = JSON . parse ( JSON . stringify ( PlayFab . _internalSettings . authenticationContext ) ) ;
10891089 var overloadCallback = function ( result , error ) {
1090- if ( result != null && result . data . SessionTicket != null ) {
1091- PlayFab . _internalSettings . sessionTicket = result . data . SessionTicket ;
1090+ if ( result != null ) {
1091+ if ( result . data . SessionTicket != null ) {
1092+ PlayFab . _internalSettings . sessionTicket = result . data . SessionTicket ;
1093+ }
1094+ if ( result . data . EntityToken != null ) {
1095+ PlayFab . _internalSettings . entityToken = result . data . EntityToken . EntityToken ;
1096+ }
1097+ // Apply the updates for the AuthenticationContext returned to the client
1098+ authenticationContext = PlayFab . _internalSettings . UpdateAuthenticationContext ( authenticationContext , result ) ;
10921099 }
10931100 if ( callback != null && typeof ( callback ) === "function" )
10941101 callback ( result , error ) ;
0 commit comments