@sendoracloud/sdk-react-native 1.23.1 → 1.24.0

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/dist/index.cjs CHANGED
@@ -200,7 +200,7 @@ var Storage = class {
200
200
  // package.json
201
201
  var package_default = {
202
202
  name: "@sendoracloud/sdk-react-native",
203
- version: "1.23.1",
203
+ version: "1.24.0",
204
204
  description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth (incl. Game Center / Play Games), deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push-token registration and the no-arg Game Center / Play Games sign-in require a Dev Client (EAS Build or `npx expo prebuild`).",
205
205
  type: "module",
206
206
  main: "./dist/index.cjs",
@@ -416,6 +416,8 @@ function isAuthApiResponse(v) {
416
416
  if (user.email !== void 0 && user.email !== null && typeof user.email !== "string") return false;
417
417
  if (user.emailVerified !== void 0 && typeof user.emailVerified !== "boolean") return false;
418
418
  if (user.name !== void 0 && user.name !== null && typeof user.name !== "string") return false;
419
+ if (user.signupMethod !== void 0 && user.signupMethod !== null && typeof user.signupMethod !== "string") return false;
420
+ if (user.lastLoginMethod !== void 0 && user.lastLoginMethod !== null && typeof user.lastLoginMethod !== "string") return false;
419
421
  return true;
420
422
  }
421
423
  var EmailAlreadyTakenError = class extends Error {
package/dist/index.d.cts CHANGED
@@ -254,6 +254,18 @@ interface AuthUser {
254
254
  emailVerified: boolean;
255
255
  name: string | null;
256
256
  isAnonymous: boolean;
257
+ /**
258
+ * How this account was FIRST created (`signupMethod`, immutable) and how it
259
+ * MOST RECENTLY authenticated (`lastLoginMethod`). Free-form provider tokens:
260
+ * `password | anonymous | google | apple | github | microsoft | linkedin |
261
+ * facebook | discord | gamecenter | playgames | magic_link | email_otp |
262
+ * passkey | oidc | saml | scim | import`. Read-only, display-only (routing /
263
+ * UI) — never an authorization signal. Optional: `undefined` against a backend
264
+ * older than s58.266, and `null` for an end-user row created before that
265
+ * backend shipped (backfilled on their next sign-in). SDK 1.24.0+.
266
+ */
267
+ signupMethod?: string | null;
268
+ lastLoginMethod?: string | null;
257
269
  }
258
270
  interface AuthTokens {
259
271
  accessToken: string;
package/dist/index.d.ts CHANGED
@@ -254,6 +254,18 @@ interface AuthUser {
254
254
  emailVerified: boolean;
255
255
  name: string | null;
256
256
  isAnonymous: boolean;
257
+ /**
258
+ * How this account was FIRST created (`signupMethod`, immutable) and how it
259
+ * MOST RECENTLY authenticated (`lastLoginMethod`). Free-form provider tokens:
260
+ * `password | anonymous | google | apple | github | microsoft | linkedin |
261
+ * facebook | discord | gamecenter | playgames | magic_link | email_otp |
262
+ * passkey | oidc | saml | scim | import`. Read-only, display-only (routing /
263
+ * UI) — never an authorization signal. Optional: `undefined` against a backend
264
+ * older than s58.266, and `null` for an end-user row created before that
265
+ * backend shipped (backfilled on their next sign-in). SDK 1.24.0+.
266
+ */
267
+ signupMethod?: string | null;
268
+ lastLoginMethod?: string | null;
257
269
  }
258
270
  interface AuthTokens {
259
271
  accessToken: string;
package/dist/index.js CHANGED
@@ -157,7 +157,7 @@ var Storage = class {
157
157
  // package.json
158
158
  var package_default = {
159
159
  name: "@sendoracloud/sdk-react-native",
160
- version: "1.23.1",
160
+ version: "1.24.0",
161
161
  description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth (incl. Game Center / Play Games), deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push-token registration and the no-arg Game Center / Play Games sign-in require a Dev Client (EAS Build or `npx expo prebuild`).",
162
162
  type: "module",
163
163
  main: "./dist/index.cjs",
@@ -373,6 +373,8 @@ function isAuthApiResponse(v) {
373
373
  if (user.email !== void 0 && user.email !== null && typeof user.email !== "string") return false;
374
374
  if (user.emailVerified !== void 0 && typeof user.emailVerified !== "boolean") return false;
375
375
  if (user.name !== void 0 && user.name !== null && typeof user.name !== "string") return false;
376
+ if (user.signupMethod !== void 0 && user.signupMethod !== null && typeof user.signupMethod !== "string") return false;
377
+ if (user.lastLoginMethod !== void 0 && user.lastLoginMethod !== null && typeof user.lastLoginMethod !== "string") return false;
376
378
  return true;
377
379
  }
378
380
  var EmailAlreadyTakenError = class extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoracloud/sdk-react-native",
3
- "version": "1.23.1",
3
+ "version": "1.24.0",
4
4
  "description": "Sendora Cloud React Native + Expo SDK — analytics, identity, push-token registration, auth (incl. Game Center / Play Games), deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push-token registration and the no-arg Game Center / Play Games sign-in require a Dev Client (EAS Build or `npx expo prebuild`).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",