@floristcloud/api-lib 1.2.185 → 1.2.186

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.
@@ -1604,6 +1604,7 @@ exports.ERRORS = {
1604
1604
  // CSRF
1605
1605
  CSRF_TOKEN_MISSING: { code: 'CSRF001', message: 'CSRF token is missing', httpCode: 403 },
1606
1606
  CSRF_TOKEN_INVALID: { code: 'CSRF002', message: 'CSRF token is invalid', httpCode: 403 },
1607
+ CSRF_ORIGIN_FORBIDDEN: { code: 'CSRF003', message: 'Cross-origin request is not allowed', httpCode: 403 },
1607
1608
  // MOBILE AUTH
1608
1609
  MOBILE_BROWSER_REQUEST_REJECTED: { code: 'MOB001', message: 'Browser requests are not allowed on this endpoint', httpCode: 403 },
1609
1610
  MOBILE_RATE_LIMIT_EXCEEDED: { code: 'MOB002', message: 'Too many requests to mobile login endpoint', httpCode: 429 },
package/constant/error.ts CHANGED
@@ -1666,6 +1666,7 @@ export const ERRORS = {
1666
1666
  // CSRF
1667
1667
  CSRF_TOKEN_MISSING: { code: 'CSRF001', message: 'CSRF token is missing', httpCode: 403 },
1668
1668
  CSRF_TOKEN_INVALID: { code: 'CSRF002', message: 'CSRF token is invalid', httpCode: 403 },
1669
+ CSRF_ORIGIN_FORBIDDEN: { code: 'CSRF003', message: 'Cross-origin request is not allowed', httpCode: 403 },
1669
1670
 
1670
1671
  // MOBILE AUTH
1671
1672
  MOBILE_BROWSER_REQUEST_REJECTED: { code: 'MOB001', message: 'Browser requests are not allowed on this endpoint', httpCode: 403 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.2.185",
3
+ "version": "1.2.186",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {