@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414if ( ! PlayFab . _internalSettings ) {
1515 PlayFab . _internalSettings = {
1616 entityToken : null ,
17- sdkVersion : "1.93.210927 " ,
17+ sdkVersion : "1.79.201217 " ,
1818 requestGetParams : {
19- sdk : "JavaScriptSDK-1.93.210927 "
19+ sdk : "JavaScriptSDK-1.79.201217 "
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 = "jbuild_javascriptsdk_sdk-generic-2_2 " ;
227- PlayFab . sdkVersion = "1.93.210927 " ;
226+ PlayFab . buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0 " ;
227+ PlayFab . sdkVersion = "1.79.201217 " ;
228228PlayFab . GenerateErrorReport = function ( error ) {
229229 if ( error == null )
230230 return "" ;
@@ -297,10 +297,6 @@ PlayFab.ClientApi = {
297297 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/ConsumeMicrosoftStoreEntitlements" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
298298 } ,
299299
300- ConsumePS5Entitlements : function ( request , callback , customData , extraHeaders ) {
301- return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/ConsumePS5Entitlements" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
302- } ,
303-
304300 ConsumePSNEntitlements : function ( request , callback , customData , extraHeaders ) {
305301 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/ConsumePSNEntitlements" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
306302 } ,
@@ -529,6 +525,10 @@ PlayFab.ClientApi = {
529525 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/GetUserReadOnlyData" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
530526 } ,
531527
528+ GetWindowsHelloChallenge : function ( request , callback , customData , extraHeaders ) {
529+ return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/GetWindowsHelloChallenge" , request , null , callback , customData , extraHeaders ) ;
530+ } ,
531+
532532 GrantCharacterToUser : function ( request , callback , customData , extraHeaders ) {
533533 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/GrantCharacterToUser" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
534534 } ,
@@ -593,6 +593,10 @@ PlayFab.ClientApi = {
593593 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/LinkTwitch" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
594594 } ,
595595
596+ LinkWindowsHello : function ( request , callback , customData , extraHeaders ) {
597+ return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/LinkWindowsHello" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
598+ } ,
599+
596600 LinkXboxAccount : function ( request , callback , customData , extraHeaders ) {
597601 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/LinkXboxAccount" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
598602 } ,
@@ -1005,6 +1009,30 @@ PlayFab.ClientApi = {
10051009 return new Promise ( function ( resolve ) { resolve ( authenticationContext ) ; } ) ;
10061010 } ,
10071011
1012+ LoginWithWindowsHello : function ( request , callback , customData , extraHeaders ) {
1013+ request . TitleId = PlayFab . settings . titleId ? PlayFab . settings . titleId : request . TitleId ; if ( ! request . TitleId ) throw PlayFab . _internalSettings . errorTitleId ;
1014+ // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
1015+ // Deep-copy the authenticationContext here to safely update it
1016+ var authenticationContext = JSON . parse ( JSON . stringify ( PlayFab . _internalSettings . authenticationContext ) ) ;
1017+ var overloadCallback = function ( result , error ) {
1018+ if ( result != null ) {
1019+ if ( result . data . SessionTicket != null ) {
1020+ PlayFab . _internalSettings . sessionTicket = result . data . SessionTicket ;
1021+ }
1022+ if ( result . data . EntityToken != null ) {
1023+ PlayFab . _internalSettings . entityToken = result . data . EntityToken . EntityToken ;
1024+ }
1025+ // Apply the updates for the AuthenticationContext returned to the client
1026+ authenticationContext = PlayFab . _internalSettings . UpdateAuthenticationContext ( authenticationContext , result ) ;
1027+ }
1028+ if ( callback != null && typeof ( callback ) === "function" )
1029+ callback ( result , error ) ;
1030+ } ;
1031+ PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/LoginWithWindowsHello" , request , null , overloadCallback , customData , extraHeaders ) ;
1032+ // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
1033+ return new Promise ( function ( resolve ) { resolve ( authenticationContext ) ; } ) ;
1034+ } ,
1035+
10081036 LoginWithXbox : function ( request , callback , customData , extraHeaders ) {
10091037 request . TitleId = PlayFab . settings . titleId ? PlayFab . settings . titleId : request . TitleId ; if ( ! request . TitleId ) throw PlayFab . _internalSettings . errorTitleId ;
10101038 // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
@@ -1072,6 +1100,30 @@ PlayFab.ClientApi = {
10721100 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/RegisterPlayFabUser" , request , null , overloadCallback , customData , extraHeaders ) ;
10731101 } ,
10741102
1103+ RegisterWithWindowsHello : function ( request , callback , customData , extraHeaders ) {
1104+ request . TitleId = PlayFab . settings . titleId ? PlayFab . settings . titleId : request . TitleId ; if ( ! request . TitleId ) throw PlayFab . _internalSettings . errorTitleId ;
1105+ // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
1106+ // Deep-copy the authenticationContext here to safely update it
1107+ var authenticationContext = JSON . parse ( JSON . stringify ( PlayFab . _internalSettings . authenticationContext ) ) ;
1108+ var overloadCallback = function ( result , error ) {
1109+ if ( result != null ) {
1110+ if ( result . data . SessionTicket != null ) {
1111+ PlayFab . _internalSettings . sessionTicket = result . data . SessionTicket ;
1112+ }
1113+ if ( result . data . EntityToken != null ) {
1114+ PlayFab . _internalSettings . entityToken = result . data . EntityToken . EntityToken ;
1115+ }
1116+ // Apply the updates for the AuthenticationContext returned to the client
1117+ authenticationContext = PlayFab . _internalSettings . UpdateAuthenticationContext ( authenticationContext , result ) ;
1118+ }
1119+ if ( callback != null && typeof ( callback ) === "function" )
1120+ callback ( result , error ) ;
1121+ } ;
1122+ PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/RegisterWithWindowsHello" , request , null , overloadCallback , customData , extraHeaders ) ;
1123+ // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
1124+ return new Promise ( function ( resolve ) { resolve ( authenticationContext ) ; } ) ;
1125+ } ,
1126+
10751127 RemoveContactEmail : function ( request , callback , customData , extraHeaders ) {
10761128 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/RemoveContactEmail" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
10771129 } ,
@@ -1192,6 +1244,10 @@ PlayFab.ClientApi = {
11921244 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/UnlinkTwitch" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
11931245 } ,
11941246
1247+ UnlinkWindowsHello : function ( request , callback , customData , extraHeaders ) {
1248+ return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/UnlinkWindowsHello" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
1249+ } ,
1250+
11951251 UnlinkXboxAccount : function ( request , callback , customData , extraHeaders ) {
11961252 return PlayFab . _internalSettings . ExecuteRequestWrapper ( "/Client/UnlinkXboxAccount" , request , "X-Authorization" , callback , customData , extraHeaders ) ;
11971253 } ,
0 commit comments