diff --git a/packages/platform-bridge/package.json b/packages/platform-bridge/package.json index 71c044f..5313544 100644 --- a/packages/platform-bridge/package.json +++ b/packages/platform-bridge/package.json @@ -2,7 +2,7 @@ "name": "@openfort/platform-bridge", "version": "0.0.0", "dependencies": { - "@openfort/openfort-js": "0.8.6", + "@openfort/openfort-js": "0.8.16", "ethers": "^5.7.0" }, "devDependencies": { diff --git a/packages/platform-bridge/src/bridge.ts b/packages/platform-bridge/src/bridge.ts index 0565e02..c53b60e 100644 --- a/packages/platform-bridge/src/bridge.ts +++ b/packages/platform-bridge/src/bridge.ts @@ -14,6 +14,7 @@ const OPENFORT_FUNCTIONS = { configureEmbeddedSigner: 'configureEmbeddedSigner', logInWithEmailPassword: 'logInWithEmailPassword', signUpWithEmailPassword: 'signUpWithEmailPassword', + signUpGuest: 'signUpGuest', linkEmailPassword: 'linkEmailPassword', unlinkEmailPassword: 'unlinkEmailPassword', requestEmailVerification: 'requestEmailVerification', @@ -544,6 +545,19 @@ window.callFunction = async (jsonData: string) => { }); break; } + case OPENFORT_FUNCTIONS.signUpGuest: { + const userInfo = await openfortClient?.signUpGuest(); + + callbackToGame({ + ...{ + responseFor: fxName, + requestId, + success: true, + }, + ...userInfo, + }); + break; + } case OPENFORT_FUNCTIONS.signUpWithEmailPassword: { const request = JSON.parse(data); const userInfo = await openfortClient?.signUpWithEmailPassword({ diff --git a/yarn.lock b/yarn.lock index 31fb2ec..5f823f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1375,32 +1375,7 @@ __metadata: languageName: unknown linkType: soft -"@openfort/openfort-js@npm:0.8.6": - version: 0.8.6 - resolution: "@openfort/openfort-js@npm:0.8.6" - dependencies: - "@ethersproject/abstract-signer": ^5.7.0 - "@ethersproject/bytes": ^5.7.0 - "@ethersproject/hash": ^5.7.0 - "@ethersproject/providers": ^5.7.0 - "@ethersproject/signing-key": ^5.7.0 - "@ethersproject/transactions": ^5.7.0 - "@noble/curves": ^1.1.0 - "@openfort/shield-js": ^0.0.3 - axios: 1.6.7 - buffer: ^6.0.3 - crypto-browserify: ^3.12.0 - crypto-js: ^4.2.0 - es6-promise: ^4.2.8 - jose: ^5.2.2 - path: ^0.12.7 - stream-browserify: ^3.0.0 - uuid: ^8.3.2 - checksum: 71bb43f1cd9d1d398c6f7e85cfc5f434c419d39980ad591ffb8a5aec8e1f85dda1daea1286395720dd3792c5ae82169321f152e122d7d1774ccd579f3b4426fc - languageName: node - linkType: hard - -"@openfort/openfort-js@workspace:sdk": +"@openfort/openfort-js@0.8.16, @openfort/openfort-js@workspace:sdk": version: 0.0.0-use.local resolution: "@openfort/openfort-js@workspace:sdk" dependencies: @@ -1457,23 +1432,13 @@ __metadata: version: 0.0.0-use.local resolution: "@openfort/platform-bridge@workspace:packages/platform-bridge" dependencies: - "@openfort/openfort-js": 0.8.6 + "@openfort/openfort-js": 0.8.16 eslint: ^8.40.0 ethers: ^5.7.0 parcel: ^2.8.3 languageName: unknown linkType: soft -"@openfort/shield-js@npm:^0.0.3": - version: 0.0.3 - resolution: "@openfort/shield-js@npm:0.0.3" - dependencies: - axios: ^1.6.8 - typescript: ^5.4.3 - checksum: fee7c7d81a72068db75e60e7bc19a79f71223740508dcdcb0056b30d092de8b0cb59c0d0f34736ac9039f7039de2b0961212ebc5623ccd153e53bd8029f46de7 - languageName: node - linkType: hard - "@openfort/shield-js@npm:^0.1.11": version: 0.1.13 resolution: "@openfort/shield-js@npm:0.1.13" @@ -3623,17 +3588,6 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.6.8": - version: 1.7.8 - resolution: "axios@npm:1.7.8" - dependencies: - follow-redirects: ^1.15.6 - form-data: ^4.0.0 - proxy-from-env: ^1.1.0 - checksum: 3d21652faf8e29fb36c47517d2872bb5e2285127a24f5c53ce23082c4eac7f5a88de84dd49d4a1a83068e5301dcfd9067b41e5fbd00b0d20ab7b0a843559273d - languageName: node - linkType: hard - "axobject-query@npm:^4.1.0": version: 4.1.0 resolution: "axobject-query@npm:4.1.0" @@ -3909,7 +3863,7 @@ __metadata: languageName: node linkType: hard -"buffer@npm:^5.5.0||^6.0.0, buffer@npm:^6.0.3": +"buffer@npm:^5.5.0||^6.0.0": version: 6.0.3 resolution: "buffer@npm:6.0.3" dependencies: @@ -5565,7 +5519,7 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.15.4, follow-redirects@npm:^1.15.6": +"follow-redirects@npm:^1.15.4": version: 1.15.9 resolution: "follow-redirects@npm:1.15.9" peerDependenciesMeta: @@ -9972,7 +9926,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.0.4, typescript@npm:^5.4.3": +"typescript@npm:^5.0.4": version: 5.7.2 resolution: "typescript@npm:5.7.2" bin: @@ -9992,7 +9946,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@^5.0.4#~builtin, typescript@patch:typescript@^5.4.3#~builtin": +"typescript@patch:typescript@^5.0.4#~builtin": version: 5.7.2 resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin::version=5.7.2&hash=14eedb" bin: