@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 CHANGED
@@ -3,8 +3,8 @@ export interface SeamlessRoleplayInitOptions {
3
3
  publishableKey: string;
4
4
  /** Your user's unique identifier */
5
5
  userId: string;
6
- /** Optional user email for account matching */
7
- userEmail?: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rehers/rehers-roleplay-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Seamless Roleplay SDK — embed roleplay call sessions via a modal + iframe",
5
5
  "main": "roleplay-sdk.js",
6
6
  "types": "index.d.ts",
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