File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const PASSPORT_FUNCTIONS = {
5353 getEmail : 'getEmail' ,
5454 getPassportId : 'getPassportId' ,
5555 getLinkedAddresses : 'getLinkedAddresses' ,
56+ storeTokens : 'storeTokens' ,
5657 imx : {
5758 getAddress : 'getAddress' ,
5859 isRegisteredOffchain : 'isRegisteredOffchain' ,
@@ -513,6 +514,19 @@ window.callFunction = async (jsonData: string) => {
513514 } ) ;
514515 break ;
515516 }
517+ case PASSPORT_FUNCTIONS . storeTokens : {
518+ const tokenResponse = JSON . parse ( data ) ;
519+ const response = await getPassportClient ( ) . storeTokens ( tokenResponse ) ;
520+ trackDuration ( moduleName , 'performedStoreTokens' , mt ( markStart ) ) ;
521+ callbackToGame ( {
522+ responseFor : fxName ,
523+ requestId,
524+ success : true ,
525+ error : null ,
526+ result : response ,
527+ } ) ;
528+ break ;
529+ }
516530 case PASSPORT_FUNCTIONS . imx . getAddress : {
517531 const address = await getProvider ( ) . getAddress ( ) ;
518532 trackDuration ( moduleName , 'performedImxGetAddress' , mt ( markStart ) ) ;
You can’t perform that action at this time.
0 commit comments