Skip to content

Commit e6f0079

Browse files
authored
Merge pull request #12 from metaversecloud-com/dev
Update SDK & fix breaking changes
2 parents 27cb7cc + 3a689f1 commit e6f0079

File tree

6 files changed

+21
-11
lines changed

6 files changed

+21
-11
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @cpsiaki @LinaBell @liebeskind

dist-server/rtsdk/getVisitor.js

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist-server/rtsdk/getVisitor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@babel/preset-env": "^7.21.5",
1515
"@googleapis/sheets": "^9.0.0",
1616
"@rtsdk/lance-topia": "^0.0.9",
17-
"@rtsdk/topia": "^0.11.12",
17+
"@rtsdk/topia": "^0.15.8",
1818
"babel-loader": "^8.0.5",
1919
"dotenv": "^16.0.3",
2020
"ejs": "^3.1.6",

src/rtsdk/getVisitor.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import { Visitor } from "./topiaInit.js";
33

44
export const getVisitor = async (credentials) => {
55
try {
6-
const { assetId, urlSlug, visitorId } = credentials;
7-
const visitor = await Visitor.get(visitorId, urlSlug, { credentials });
6+
const { assetId, interactiveNonce, interactivePublicKey, urlSlug, visitorId } = credentials;
7+
// specifying credentials here to avoid passing gameEngineId and iframeId
8+
const visitor = await Visitor.get(visitorId, urlSlug, {
9+
credentials: { assetId, interactiveNonce, interactivePublicKey, urlSlug, visitorId },
10+
});
811
if (!visitor) throw "Not in world";
912

1013
let isInZone = true;

0 commit comments

Comments
 (0)