@rehers/rehers-roleplay-sdk 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/roleplay-sdk.js +2 -2
package/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export interface SeamlessRoleplayInitOptions {
|
|
|
3
3
|
publishableKey: string;
|
|
4
4
|
/** Your user's unique identifier */
|
|
5
5
|
userId: string;
|
|
6
|
-
/**
|
|
7
|
-
userEmail
|
|
6
|
+
/** User email — required for secure account matching */
|
|
7
|
+
userEmail: string;
|
|
8
8
|
/** Optional signed JWT for identity verification */
|
|
9
9
|
userToken?: string;
|
|
10
10
|
/** URL shown when the user is not found (trial mode) */
|
package/package.json
CHANGED
package/roleplay-sdk.js
CHANGED
|
@@ -350,8 +350,8 @@
|
|
|
350
350
|
*/
|
|
351
351
|
init: function (opts) {
|
|
352
352
|
try {
|
|
353
|
-
if (!opts || !opts.publishableKey || !opts.userId) {
|
|
354
|
-
logError("init", "requires { publishableKey, userId }");
|
|
353
|
+
if (!opts || !opts.publishableKey || !opts.userId || !opts.userEmail) {
|
|
354
|
+
logError("init", "requires { publishableKey, userId, userEmail }");
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
357
|
|