platform-types 1.10.850 → 1.10.851

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/auth.d.ts CHANGED
@@ -1668,6 +1668,8 @@ export type CustomerSocialRegisterErrorCode = (typeof CUSTOMER_SOCIAL_REGISTER_E
1668
1668
  * host can refuse with, beside the ordinary `400` validation refusal:
1669
1669
  *
1670
1670
  * - `INVALID_ID_TOKEN` · 401 — the token is expired or malformed; get a fresh one.
1671
+ * - `REAUTH_NOT_RECENT` · 401 — the provider sign-in behind the token
1672
+ * (`auth_time`) is over five minutes old, or unstated: sign in again.
1671
1673
  * - `SIGN_IN_IDENTITY_UNVERIFIED` · 401 — the provider has not verified the
1672
1674
  * email, or the token carries none.
1673
1675
  * - `SIGN_IN_PROVIDER_UNSUPPORTED` · 400 — a provider other than Google or Apple.
@@ -1675,7 +1677,7 @@ export type CustomerSocialRegisterErrorCode = (typeof CUSTOMER_SOCIAL_REGISTER_E
1675
1677
  * and the body carries no `storeContact.email`, or a relay one.
1676
1678
  * - `EMAIL_IN_USE` · 400 and `CUIT_SHARED` · 409 — exactly as `mode: 'register'`.
1677
1679
  */
1678
- export declare const TENANT_SOCIAL_REGISTER_ERROR_CODES: readonly ["INVALID_ID_TOKEN", "SIGN_IN_IDENTITY_UNVERIFIED", "SIGN_IN_PROVIDER_UNSUPPORTED", "STORE_CONTACT_EMAIL_REQUIRED", "EMAIL_IN_USE", "CUIT_SHARED"];
1680
+ export declare const TENANT_SOCIAL_REGISTER_ERROR_CODES: readonly ["INVALID_ID_TOKEN", "REAUTH_NOT_RECENT", "SIGN_IN_IDENTITY_UNVERIFIED", "SIGN_IN_PROVIDER_UNSUPPORTED", "STORE_CONTACT_EMAIL_REQUIRED", "EMAIL_IN_USE", "CUIT_SHARED"];
1679
1681
  export type TenantSocialRegisterErrorCode = (typeof TENANT_SOCIAL_REGISTER_ERROR_CODES)[number];
1680
1682
  /**
1681
1683
  * `body.error` codes `POST /auth/verify-password` answers for the PROOF itself
package/dist/auth.js CHANGED
@@ -168,6 +168,8 @@ export const CUSTOMER_SOCIAL_REGISTER_ERROR_CODES = [
168
168
  * host can refuse with, beside the ordinary `400` validation refusal:
169
169
  *
170
170
  * - `INVALID_ID_TOKEN` · 401 — the token is expired or malformed; get a fresh one.
171
+ * - `REAUTH_NOT_RECENT` · 401 — the provider sign-in behind the token
172
+ * (`auth_time`) is over five minutes old, or unstated: sign in again.
171
173
  * - `SIGN_IN_IDENTITY_UNVERIFIED` · 401 — the provider has not verified the
172
174
  * email, or the token carries none.
173
175
  * - `SIGN_IN_PROVIDER_UNSUPPORTED` · 400 — a provider other than Google or Apple.
@@ -177,6 +179,7 @@ export const CUSTOMER_SOCIAL_REGISTER_ERROR_CODES = [
177
179
  */
178
180
  export const TENANT_SOCIAL_REGISTER_ERROR_CODES = [
179
181
  'INVALID_ID_TOKEN',
182
+ 'REAUTH_NOT_RECENT',
180
183
  'SIGN_IN_IDENTITY_UNVERIFIED',
181
184
  'SIGN_IN_PROVIDER_UNSUPPORTED',
182
185
  'STORE_CONTACT_EMAIL_REQUIRED',
package/dist/cjs/auth.js CHANGED
@@ -171,6 +171,8 @@ exports.CUSTOMER_SOCIAL_REGISTER_ERROR_CODES = [
171
171
  * host can refuse with, beside the ordinary `400` validation refusal:
172
172
  *
173
173
  * - `INVALID_ID_TOKEN` · 401 — the token is expired or malformed; get a fresh one.
174
+ * - `REAUTH_NOT_RECENT` · 401 — the provider sign-in behind the token
175
+ * (`auth_time`) is over five minutes old, or unstated: sign in again.
174
176
  * - `SIGN_IN_IDENTITY_UNVERIFIED` · 401 — the provider has not verified the
175
177
  * email, or the token carries none.
176
178
  * - `SIGN_IN_PROVIDER_UNSUPPORTED` · 400 — a provider other than Google or Apple.
@@ -180,6 +182,7 @@ exports.CUSTOMER_SOCIAL_REGISTER_ERROR_CODES = [
180
182
  */
181
183
  exports.TENANT_SOCIAL_REGISTER_ERROR_CODES = [
182
184
  'INVALID_ID_TOKEN',
185
+ 'REAUTH_NOT_RECENT',
183
186
  'SIGN_IN_IDENTITY_UNVERIFIED',
184
187
  'SIGN_IN_PROVIDER_UNSUPPORTED',
185
188
  'STORE_CONTACT_EMAIL_REQUIRED',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.850",
3
+ "version": "1.10.851",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",