@payloadcms/figma 0.0.1-alpha.73 → 0.0.1-alpha.75

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.
Files changed (309) hide show
  1. package/dist/api/control-plane.d.ts +0 -1
  2. package/dist/api/control-plane.js +0 -2
  3. package/dist/api/error-response.d.ts +0 -1
  4. package/dist/api/error-response.js +0 -2
  5. package/dist/api/figma-api.d.ts +2 -2
  6. package/dist/api/figma-api.js +33 -5
  7. package/dist/auth/browser.d.ts +0 -1
  8. package/dist/auth/browser.js +0 -2
  9. package/dist/auth/callback-server.d.ts +0 -1
  10. package/dist/auth/callback-server.js +0 -2
  11. package/dist/auth/credentials.d.ts +0 -1
  12. package/dist/auth/credentials.js +0 -2
  13. package/dist/auth/crypto-utils.d.ts +0 -1
  14. package/dist/auth/crypto-utils.js +0 -2
  15. package/dist/auth/jwt-validator.d.ts +22 -6
  16. package/dist/auth/jwt-validator.js +33 -7
  17. package/dist/auth/oauth-flow.d.ts +0 -1
  18. package/dist/auth/oauth-flow.js +0 -2
  19. package/dist/auth/paste-code.d.ts +0 -1
  20. package/dist/auth/paste-code.js +0 -2
  21. package/dist/auth/pkce.d.ts +0 -1
  22. package/dist/auth/pkce.js +0 -2
  23. package/dist/auth/project-token.d.ts +0 -1
  24. package/dist/auth/project-token.js +6 -4
  25. package/dist/auth/refresh.d.ts +0 -1
  26. package/dist/auth/refresh.js +0 -2
  27. package/dist/auth/token-store-migration.d.ts +0 -1
  28. package/dist/auth/token-store-migration.js +0 -2
  29. package/dist/auth/token-store.d.ts +0 -1
  30. package/dist/auth/token-store.js +0 -2
  31. package/dist/auth/types.d.ts +5 -2
  32. package/dist/auth/types.js +1 -3
  33. package/dist/cli.d.ts +0 -1
  34. package/dist/cli.js +7 -2
  35. package/dist/commands/bootstrap.d.ts +0 -1
  36. package/dist/commands/bootstrap.js +0 -2
  37. package/dist/commands/build-lambda-zip.d.ts +0 -1
  38. package/dist/commands/build-lambda-zip.js +0 -2
  39. package/dist/commands/debug.d.ts +0 -1
  40. package/dist/commands/debug.js +0 -2
  41. package/dist/commands/deploy.d.ts +0 -1
  42. package/dist/commands/deploy.js +0 -2
  43. package/dist/commands/dump-tokens.d.ts +0 -1
  44. package/dist/commands/dump-tokens.js +0 -2
  45. package/dist/commands/env.d.ts +0 -1
  46. package/dist/commands/env.js +0 -2
  47. package/dist/commands/init.d.ts +0 -1
  48. package/dist/commands/init.js +0 -2
  49. package/dist/commands/list-tokens.d.ts +0 -1
  50. package/dist/commands/list-tokens.js +0 -2
  51. package/dist/commands/login.d.ts +0 -1
  52. package/dist/commands/login.js +0 -2
  53. package/dist/commands/logout.d.ts +0 -1
  54. package/dist/commands/logout.js +0 -2
  55. package/dist/commands/upgrade.d.ts +0 -1
  56. package/dist/commands/upgrade.js +0 -2
  57. package/dist/commands/upload-schema.d.ts +8 -0
  58. package/dist/commands/upload-schema.js +91 -0
  59. package/dist/config/oauth.d.ts +0 -1
  60. package/dist/config/oauth.js +0 -2
  61. package/dist/constants.d.ts +0 -1
  62. package/dist/constants.js +0 -2
  63. package/dist/db-content-api/generated/content-api-types.d.ts +4188 -592
  64. package/dist/db-content-api/generated/content-api-types.js +0 -2
  65. package/dist/db-content-api/index.d.ts +0 -1
  66. package/dist/db-content-api/index.js +0 -2
  67. package/dist/db-content-api/temp-utilities/slug.d.ts +0 -1
  68. package/dist/db-content-api/temp-utilities/slug.js +0 -2
  69. package/dist/db-content-api/temp-utilities/sorting.d.ts +0 -1
  70. package/dist/db-content-api/temp-utilities/sorting.js +0 -2
  71. package/dist/db-content-api/temp-utilities/types.d.ts +0 -1
  72. package/dist/db-content-api/temp-utilities/types.js +0 -2
  73. package/dist/db-content-api/temp-utilities/unwrapDocument.d.ts +0 -1
  74. package/dist/db-content-api/temp-utilities/unwrapDocument.js +0 -2
  75. package/dist/db-content-api/utilities/auth.d.ts +0 -1
  76. package/dist/db-content-api/utilities/auth.js +0 -2
  77. package/dist/db-content-api/utilities/data/applyDefaults.d.ts +0 -1
  78. package/dist/db-content-api/utilities/data/applyDefaults.js +0 -2
  79. package/dist/db-content-api/utilities/data/castFieldValue.d.ts +0 -1
  80. package/dist/db-content-api/utilities/data/castFieldValue.js +0 -2
  81. package/dist/db-content-api/utilities/data/index.d.ts +0 -1
  82. package/dist/db-content-api/utilities/data/index.js +0 -2
  83. package/dist/db-content-api/utilities/data/pointShape.d.ts +3 -0
  84. package/dist/db-content-api/utilities/data/pointShape.js +43 -0
  85. package/dist/db-content-api/utilities/data/removeVirtualFields.d.ts +0 -1
  86. package/dist/db-content-api/utilities/data/removeVirtualFields.js +0 -2
  87. package/dist/db-content-api/utilities/data/richTextShape.d.ts +3 -0
  88. package/dist/db-content-api/utilities/data/richTextShape.js +56 -0
  89. package/dist/db-content-api/utilities/data/stripFields.d.ts +0 -1
  90. package/dist/db-content-api/utilities/data/stripFields.js +0 -2
  91. package/dist/db-content-api/utilities/data/transformPublishedLocale.d.ts +0 -1
  92. package/dist/db-content-api/utilities/data/transformPublishedLocale.js +0 -2
  93. package/dist/db-content-api/utilities/data/validateRelationships.d.ts +0 -1
  94. package/dist/db-content-api/utilities/data/validateRelationships.js +0 -2
  95. package/dist/db-content-api/utilities/joins.d.ts +0 -1
  96. package/dist/db-content-api/utilities/joins.js +0 -2
  97. package/dist/db-content-api/utilities/locale/index.d.ts +0 -1
  98. package/dist/db-content-api/utilities/locale/index.js +0 -2
  99. package/dist/db-content-api/utilities/meta/buildLocalizedPaths.d.ts +0 -1
  100. package/dist/db-content-api/utilities/meta/buildLocalizedPaths.js +0 -2
  101. package/dist/db-content-api/utilities/meta/buildMeta.d.ts +0 -1
  102. package/dist/db-content-api/utilities/meta/buildMeta.js +0 -2
  103. package/dist/db-content-api/utilities/meta/buildPathTypes.d.ts +0 -1
  104. package/dist/db-content-api/utilities/meta/buildPathTypes.js +0 -2
  105. package/dist/db-content-api/utilities/meta/buildUniquePaths.d.ts +0 -1
  106. package/dist/db-content-api/utilities/meta/buildUniquePaths.js +0 -2
  107. package/dist/db-content-api/utilities/meta/normalizeLocaleInWhere.d.ts +0 -1
  108. package/dist/db-content-api/utilities/meta/normalizeLocaleInWhere.js +0 -2
  109. package/dist/db-content-api/utilities/schema/buildDocumentSchema.d.ts +56 -0
  110. package/dist/db-content-api/utilities/schema/buildDocumentSchema.js +183 -0
  111. package/dist/db-content-api/utilities/where.d.ts +0 -1
  112. package/dist/db-content-api/utilities/where.js +0 -2
  113. package/dist/deploy/schedule-extract-plugin.d.ts +0 -1
  114. package/dist/deploy/schedule-extract-plugin.js +0 -2
  115. package/dist/endpoints/health.d.ts +0 -1
  116. package/dist/endpoints/health.js +0 -2
  117. package/dist/endpoints/schema.d.ts +0 -1
  118. package/dist/endpoints/schema.js +0 -2
  119. package/dist/exports/client.d.ts +0 -1
  120. package/dist/exports/client.js +0 -2
  121. package/dist/index.d.ts +0 -1
  122. package/dist/index.js +0 -2
  123. package/dist/lib/download-skill.d.ts +0 -1
  124. package/dist/lib/download-skill.js +0 -2
  125. package/dist/oauth/components/FigmaAvatar/index.d.ts +0 -1
  126. package/dist/oauth/components/FigmaAvatar/index.js +0 -2
  127. package/dist/oauth/components/FigmaAvatarCell/index.d.ts +0 -1
  128. package/dist/oauth/components/FigmaAvatarCell/index.js +0 -2
  129. package/dist/oauth/components/FigmaAvatarPlaceholder/index.d.ts +0 -1
  130. package/dist/oauth/components/FigmaAvatarPlaceholder/index.js +0 -2
  131. package/dist/oauth/components/LoginButton/iframeAutoLogin.d.ts +0 -1
  132. package/dist/oauth/components/LoginButton/iframeAutoLogin.js +0 -2
  133. package/dist/oauth/components/LoginButton/index.d.ts +0 -1
  134. package/dist/oauth/components/LoginButton/index.js +3 -5
  135. package/dist/oauth/components/LogoutButton/index.d.ts +0 -1
  136. package/dist/oauth/components/LogoutButton/index.js +0 -2
  137. package/dist/oauth/defaults.d.ts +0 -1
  138. package/dist/oauth/defaults.js +8 -2
  139. package/dist/oauth/endpoints/getLoginEndpoint.d.ts +0 -1
  140. package/dist/oauth/endpoints/getLoginEndpoint.js +4 -8
  141. package/dist/oauth/endpoints/getLogoutEndpoint.d.ts +0 -1
  142. package/dist/oauth/endpoints/getLogoutEndpoint.js +0 -2
  143. package/dist/oauth/endpoints/getMetaEndpoint.d.ts +0 -1
  144. package/dist/oauth/endpoints/getMetaEndpoint.js +0 -2
  145. package/dist/oauth/endpoints/getRedirectToLoginEndpoint.d.ts +0 -1
  146. package/dist/oauth/endpoints/getRedirectToLoginEndpoint.js +0 -2
  147. package/dist/oauth/exports/client.d.ts +0 -1
  148. package/dist/oauth/exports/client.js +0 -2
  149. package/dist/oauth/hooks/afterLogout.d.ts +0 -1
  150. package/dist/oauth/hooks/afterLogout.js +0 -2
  151. package/dist/oauth/hooks/me.d.ts +0 -1
  152. package/dist/oauth/hooks/me.js +0 -2
  153. package/dist/oauth/hooks/refresh.d.ts +0 -1
  154. package/dist/oauth/hooks/refresh.js +0 -2
  155. package/dist/oauth/index.d.ts +0 -1
  156. package/dist/oauth/index.js +0 -2
  157. package/dist/oauth/strategy/index.d.ts +0 -1
  158. package/dist/oauth/strategy/index.js +17 -19
  159. package/dist/oauth/types.d.ts +0 -1
  160. package/dist/oauth/types.js +0 -2
  161. package/dist/oauth/utilities/clearCookie.d.ts +0 -1
  162. package/dist/oauth/utilities/clearCookie.js +0 -2
  163. package/dist/oauth/utilities/createCookieOptions.d.ts +0 -1
  164. package/dist/oauth/utilities/createCookieOptions.js +0 -2
  165. package/dist/oauth/utilities/createDebugLogger.d.ts +0 -1
  166. package/dist/oauth/utilities/createDebugLogger.js +0 -2
  167. package/dist/oauth/utilities/establishSession.d.ts +4 -5
  168. package/dist/oauth/utilities/establishSession.js +9 -12
  169. package/dist/oauth/utilities/exchangeCodeForAccessToken.d.ts +0 -1
  170. package/dist/oauth/utilities/exchangeCodeForAccessToken.js +0 -2
  171. package/dist/oauth/utilities/extractOrigin.d.ts +0 -1
  172. package/dist/oauth/utilities/extractOrigin.js +0 -2
  173. package/dist/oauth/utilities/figmaHostnames.d.ts +0 -1
  174. package/dist/oauth/utilities/figmaHostnames.js +0 -2
  175. package/dist/oauth/utilities/getAdminCollectionSlug.d.ts +0 -1
  176. package/dist/oauth/utilities/getAdminCollectionSlug.js +0 -2
  177. package/dist/oauth/utilities/getAuthorizeURL.d.ts +0 -1
  178. package/dist/oauth/utilities/getAuthorizeURL.js +0 -2
  179. package/dist/oauth/utilities/getCookieExpiration.d.ts +0 -1
  180. package/dist/oauth/utilities/getCookieExpiration.js +0 -2
  181. package/dist/oauth/utilities/getSecondsFromTokenExp.d.ts +0 -1
  182. package/dist/oauth/utilities/getSecondsFromTokenExp.js +0 -2
  183. package/dist/oauth/utilities/getTokenExp.d.ts +0 -1
  184. package/dist/oauth/utilities/getTokenExp.js +0 -2
  185. package/dist/oauth/utilities/getUsernameField.d.ts +0 -1
  186. package/dist/oauth/utilities/getUsernameField.js +0 -2
  187. package/dist/oauth/utilities/hasUserTokenPropsChanged.d.ts +0 -1
  188. package/dist/oauth/utilities/hasUserTokenPropsChanged.js +0 -2
  189. package/dist/oauth/utilities/isAbsoluteURL.d.ts +0 -1
  190. package/dist/oauth/utilities/isAbsoluteURL.js +0 -2
  191. package/dist/oauth/utilities/isDuplicateKeyError.d.ts +0 -1
  192. package/dist/oauth/utilities/isDuplicateKeyError.js +0 -2
  193. package/dist/oauth/utilities/mergeHeaders.d.ts +0 -1
  194. package/dist/oauth/utilities/mergeHeaders.js +0 -2
  195. package/dist/oauth/utilities/refreshTokens.d.ts +0 -1
  196. package/dist/oauth/utilities/refreshTokens.js +16 -12
  197. package/dist/oauth/utilities/withPartitionedCookie.d.ts +0 -1
  198. package/dist/oauth/utilities/withPartitionedCookie.js +0 -2
  199. package/dist/oauth/utils/getSearchParam.d.ts +27 -0
  200. package/dist/oauth/utils/getSearchParam.js +45 -0
  201. package/dist/plugin/adapter.d.ts +0 -1
  202. package/dist/plugin/adapter.js +0 -2
  203. package/dist/plugin/auth-preflight.d.ts +0 -1
  204. package/dist/plugin/auth-preflight.js +0 -2
  205. package/dist/plugin/bootstrap-preflight.d.ts +0 -1
  206. package/dist/plugin/bootstrap-preflight.js +0 -2
  207. package/dist/plugin/build-config.d.ts +1 -1
  208. package/dist/plugin/build-config.js +66 -3
  209. package/dist/plugin/dev-cookie-names.d.ts +0 -1
  210. package/dist/plugin/dev-cookie-names.js +0 -2
  211. package/dist/storage-content-api/api-types.d.ts +0 -1
  212. package/dist/storage-content-api/api-types.js +0 -2
  213. package/dist/storage-content-api/client-uploads/ClientUploadHandler.d.ts +0 -1
  214. package/dist/storage-content-api/client-uploads/ClientUploadHandler.js +0 -2
  215. package/dist/storage-content-api/client-uploads/generateSignedURL.d.ts +0 -1
  216. package/dist/storage-content-api/client-uploads/generateSignedURL.js +0 -2
  217. package/dist/storage-content-api/client.d.ts +0 -1
  218. package/dist/storage-content-api/client.js +0 -2
  219. package/dist/storage-content-api/generateURL.d.ts +0 -1
  220. package/dist/storage-content-api/generateURL.js +0 -2
  221. package/dist/storage-content-api/handleDelete.d.ts +0 -1
  222. package/dist/storage-content-api/handleDelete.js +0 -2
  223. package/dist/storage-content-api/handleUpload.d.ts +0 -1
  224. package/dist/storage-content-api/handleUpload.js +0 -2
  225. package/dist/storage-content-api/index.d.ts +0 -1
  226. package/dist/storage-content-api/index.js +0 -2
  227. package/dist/storage-content-api/staticHandler.d.ts +0 -1
  228. package/dist/storage-content-api/staticHandler.js +0 -2
  229. package/dist/storage-content-api/types.d.ts +0 -1
  230. package/dist/storage-content-api/types.js +0 -2
  231. package/dist/storage-content-api/utilities/getSafeFilename.d.ts +0 -1
  232. package/dist/storage-content-api/utilities/getSafeFilename.js +0 -2
  233. package/dist/storage-content-api/utilities/index.d.ts +0 -1
  234. package/dist/storage-content-api/utilities/index.js +0 -2
  235. package/dist/storage-content-api/utilities/parseClientUploadContext.d.ts +0 -1
  236. package/dist/storage-content-api/utilities/parseClientUploadContext.js +0 -2
  237. package/dist/types/config.d.ts +0 -1
  238. package/dist/types/config.js +0 -2
  239. package/dist/types.d.ts +0 -1
  240. package/dist/types.js +0 -2
  241. package/dist/utils/adapters/nextjs.d.ts +0 -1
  242. package/dist/utils/adapters/nextjs.js +0 -2
  243. package/dist/utils/adapters/nitro.d.ts +0 -1
  244. package/dist/utils/adapters/nitro.js +0 -2
  245. package/dist/utils/adapters/vite.d.ts +0 -1
  246. package/dist/utils/adapters/vite.js +0 -2
  247. package/dist/utils/asset-collection.d.ts +0 -1
  248. package/dist/utils/asset-collection.js +0 -2
  249. package/dist/utils/build-detection.d.ts +0 -1
  250. package/dist/utils/build-detection.js +0 -2
  251. package/dist/utils/build-lambda-zip.d.ts +0 -1
  252. package/dist/utils/build-lambda-zip.js +0 -2
  253. package/dist/utils/cache-bootstrap.d.ts +0 -1
  254. package/dist/utils/cache-bootstrap.js +0 -2
  255. package/dist/utils/config.d.ts +0 -1
  256. package/dist/utils/config.js +0 -2
  257. package/dist/utils/deploy-adapter.d.ts +0 -1
  258. package/dist/utils/deploy-adapter.js +0 -2
  259. package/dist/utils/download-template.d.ts +0 -1
  260. package/dist/utils/download-template.js +0 -2
  261. package/dist/utils/env-management.d.ts +0 -1
  262. package/dist/utils/env-management.js +0 -2
  263. package/dist/utils/format-env-suffix.d.ts +0 -1
  264. package/dist/utils/format-env-suffix.js +0 -2
  265. package/dist/utils/format.d.ts +0 -1
  266. package/dist/utils/format.js +0 -2
  267. package/dist/utils/formatter.d.ts +0 -1
  268. package/dist/utils/formatter.js +0 -2
  269. package/dist/utils/fs-utils.d.ts +0 -1
  270. package/dist/utils/fs-utils.js +0 -2
  271. package/dist/utils/git.d.ts +0 -1
  272. package/dist/utils/git.js +0 -2
  273. package/dist/utils/handle-upgrade.d.ts +0 -1
  274. package/dist/utils/handle-upgrade.js +0 -2
  275. package/dist/utils/is-debug.d.ts +0 -1
  276. package/dist/utils/is-debug.js +0 -2
  277. package/dist/utils/lambda-config.d.ts +0 -1
  278. package/dist/utils/lambda-config.js +0 -2
  279. package/dist/utils/load-payload-config.d.ts +9 -0
  280. package/dist/utils/load-payload-config.js +27 -0
  281. package/dist/utils/log.d.ts +0 -1
  282. package/dist/utils/log.js +0 -2
  283. package/dist/utils/messages.d.ts +0 -1
  284. package/dist/utils/messages.js +7 -2
  285. package/dist/utils/package-manager.d.ts +0 -1
  286. package/dist/utils/package-manager.js +0 -2
  287. package/dist/utils/parse-template-spec.d.ts +0 -1
  288. package/dist/utils/parse-template-spec.js +0 -2
  289. package/dist/utils/payload-config-ast.d.ts +0 -1
  290. package/dist/utils/payload-config-ast.js +0 -2
  291. package/dist/utils/payload-config-finder.d.ts +0 -1
  292. package/dist/utils/payload-config-finder.js +0 -2
  293. package/dist/utils/payload-config-modifier.d.ts +0 -1
  294. package/dist/utils/payload-config-modifier.js +0 -2
  295. package/dist/utils/payload-package-check.d.ts +0 -1
  296. package/dist/utils/payload-package-check.js +0 -2
  297. package/dist/utils/project.d.ts +0 -1
  298. package/dist/utils/project.js +0 -2
  299. package/dist/utils/resolve-environment.d.ts +0 -1
  300. package/dist/utils/resolve-environment.js +0 -2
  301. package/dist/utils/s3-upload.d.ts +0 -1
  302. package/dist/utils/s3-upload.js +0 -2
  303. package/dist/utils/token-display.d.ts +0 -1
  304. package/dist/utils/token-display.js +0 -2
  305. package/dist/utils/typescript-validator.d.ts +0 -1
  306. package/dist/utils/typescript-validator.js +0 -2
  307. package/dist/utils/version-check.d.ts +0 -1
  308. package/dist/utils/version-check.js +0 -2
  309. package/package.json +1 -1
@@ -7,5 +7,3 @@ export const health = {
7
7
  method: 'get',
8
8
  path: '/health'
9
9
  };
10
-
11
- //# sourceMappingURL=health.js.map
@@ -1,3 +1,2 @@
1
1
  import type { Endpoint } from 'payload';
2
2
  export declare const schema: Endpoint;
3
- //# sourceMappingURL=schema.d.ts.map
@@ -25,5 +25,3 @@ export const schema = {
25
25
  method: 'get',
26
26
  path: '/figma/schema'
27
27
  };
28
-
29
- //# sourceMappingURL=schema.js.map
@@ -3,4 +3,3 @@ export { FigmaAvatarCell } from '../oauth/components/FigmaAvatarCell/index.js';
3
3
  export { DefaultLoginButton } from '../oauth/components/LoginButton/index.js';
4
4
  export { LogoutButton } from '../oauth/components/LogoutButton/index.js';
5
5
  export { ContentApiClientUploadHandler } from '../storage-content-api/client-uploads/ClientUploadHandler.js';
6
- //# sourceMappingURL=client.d.ts.map
@@ -3,5 +3,3 @@ export { FigmaAvatarCell } from '../oauth/components/FigmaAvatarCell/index.js';
3
3
  export { DefaultLoginButton } from '../oauth/components/LoginButton/index.js';
4
4
  export { LogoutButton } from '../oauth/components/LogoutButton/index.js';
5
5
  export { ContentApiClientUploadHandler } from '../storage-content-api/client-uploads/ClientUploadHandler.js';
6
-
7
- //# sourceMappingURL=client.js.map
package/dist/index.d.ts CHANGED
@@ -3,4 +3,3 @@ export { figmaContentSystem } from './plugin/adapter.js';
3
3
  export type { FigmaContentSystemOptions } from './plugin/adapter.js';
4
4
  export { buildFigmaConfig } from './plugin/build-config.js';
5
5
  export type { FigmaConfig } from './plugin/build-config.js';
6
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -4,5 +4,3 @@ export { contentAPIAdapter } from './db-content-api/index.js';
4
4
  export { figmaContentSystem } from './plugin/adapter.js';
5
5
  // Export buildConfig wrapper and its config type
6
6
  export { buildFigmaConfig } from './plugin/build-config.js';
7
-
8
- //# sourceMappingURL=index.js.map
@@ -10,4 +10,3 @@ export declare function downloadSkill(args: {
10
10
  debug?: boolean;
11
11
  projectDir: string;
12
12
  }): Promise<DownloadSkillResult>;
13
- //# sourceMappingURL=download-skill.d.ts.map
@@ -75,5 +75,3 @@ async function pathExists(p) {
75
75
  return false;
76
76
  }
77
77
  }
78
-
79
- //# sourceMappingURL=download-skill.js.map
@@ -1,4 +1,3 @@
1
1
  import type React from 'react';
2
2
  import './index.scss';
3
3
  export declare const FigmaAvatar: React.FC;
4
- //# sourceMappingURL=index.d.ts.map
@@ -23,5 +23,3 @@ export const FigmaAvatar = ()=>{
23
23
  width: 25
24
24
  });
25
25
  };
26
-
27
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@ import type { DefaultCellComponentProps } from 'payload';
2
2
  import type React from 'react';
3
3
  import './index.scss';
4
4
  export declare const FigmaAvatarCell: React.FC<DefaultCellComponentProps>;
5
- //# sourceMappingURL=index.d.ts.map
@@ -21,5 +21,3 @@ export const FigmaAvatarCell = ({ cellData })=>{
21
21
  width: 20
22
22
  });
23
23
  };
24
-
25
- //# sourceMappingURL=index.js.map
@@ -6,4 +6,3 @@ type FigmaAvatarPlaceholderProps = {
6
6
  export declare const FigmaAvatarPlaceholder: React.FC<FigmaAvatarPlaceholderProps>;
7
7
  export declare function isValidImageUrl(url: string): boolean;
8
8
  export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -33,5 +33,3 @@ export function isValidImageUrl(url) {
33
33
  return false;
34
34
  }
35
35
  }
36
-
37
- //# sourceMappingURL=index.js.map
@@ -79,4 +79,3 @@ export interface IframeAutoLoginDeps {
79
79
  * fetch — designed to be returned directly from a React useEffect.
80
80
  */
81
81
  export declare const setupIframeAutoLogin: (deps: IframeAutoLoginDeps) => (() => void);
82
- //# sourceMappingURL=iframeAutoLogin.d.ts.map
@@ -166,5 +166,3 @@ import { isFigmaOrigin } from '../../utilities/figmaHostnames.js';
166
166
  abortController.abort();
167
167
  };
168
168
  };
169
-
170
- //# sourceMappingURL=iframeAutoLogin.js.map
@@ -6,4 +6,3 @@ type DefaultLoginButtonProps = {
6
6
  };
7
7
  export declare const DefaultLoginButton: React.FC<DefaultLoginButtonProps>;
8
8
  export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useConfig } from '@payloadcms/ui';
4
- import { useSearchParams } from 'next/navigation.js';
3
+ import { useConfig, useSearchParams } from '@payloadcms/ui';
5
4
  import React, { useEffect, useState } from 'react';
5
+ import { getSearchParam } from '../../utils/getSearchParam.js';
6
6
  import { resolveParentTargetOrigin, setupIframeAutoLogin } from './iframeAutoLogin.js';
7
7
  import './index.scss';
8
8
  const baseClass = 'oauth-login';
@@ -55,7 +55,7 @@ export const DefaultLoginButton = ({ disabled, endpointSlug })=>{
55
55
  const [isInIframe, setIsInIframe] = useState(null);
56
56
  const [autoLoginFailed, setAutoLoginFailed] = useState(false);
57
57
  const searchParams = useSearchParams();
58
- const payloadRedirect = searchParams.get('redirect');
58
+ const payloadRedirect = getSearchParam(searchParams, 'redirect');
59
59
  useEffect(()=>{
60
60
  try {
61
61
  setIsInIframe(window.self !== window.top);
@@ -188,5 +188,3 @@ export const DefaultLoginButton = ({ disabled, endpointSlug })=>{
188
188
  })
189
189
  });
190
190
  };
191
-
192
- //# sourceMappingURL=index.js.map
@@ -4,4 +4,3 @@ export declare const LogoutButton: React.FC<{
4
4
  disabled?: boolean;
5
5
  endpointSlug: string;
6
6
  }>;
7
- //# sourceMappingURL=index.d.ts.map
@@ -76,5 +76,3 @@ export const LogoutButton = ({ disabled, endpointSlug })=>{
76
76
  })
77
77
  });
78
78
  };
79
-
80
- //# sourceMappingURL=index.js.map
@@ -9,4 +9,3 @@ export declare const defaultVerify: ({ collection, strategyName, userInfoCookieN
9
9
  userInfoCookieName?: string;
10
10
  usernameField: EmailField | TextField;
11
11
  }) => VerifyFunction;
12
- //# sourceMappingURL=defaults.d.ts.map
@@ -138,6 +138,14 @@ export const defaultVerify = ({ collection, strategyName, userInfoCookieName = D
138
138
  user.collection = collection.slug;
139
139
  user._strategy = strategyName;
140
140
  user.exp = token.exp;
141
+ // userGroups/makePermission are virtual (never persisted). Surface the live
142
+ // JWT claims on the authenticated user for this request so access control
143
+ // and self-reads see current values. Claims are snake_case on the wire; the
144
+ // collection fields are camelCase. The field afterRead hooks
145
+ // (see build-config.ts) read these back off req.user.
146
+ const userWithFigmaClaims = user;
147
+ userWithFigmaClaims.userGroups = Array.isArray(token.user_groups) ? token.user_groups : undefined;
148
+ userWithFigmaClaims.makePermission = token.make_permission === 'edit' || token.make_permission === 'view' ? token.make_permission : undefined;
141
149
  return {
142
150
  responseHeaders,
143
151
  user
@@ -148,5 +156,3 @@ export const defaultVerify = ({ collection, strategyName, userInfoCookieName = D
148
156
  user: null
149
157
  };
150
158
  };
151
-
152
- //# sourceMappingURL=defaults.js.map
@@ -10,4 +10,3 @@ interface Args {
10
10
  }
11
11
  export declare const getLoginEndpoint: ({ collection, collectionOptions, endpointSlug, pluginOptions, strategy, }: Args) => Endpoint;
12
12
  export {};
13
- //# sourceMappingURL=getLoginEndpoint.d.ts.map
@@ -163,9 +163,8 @@ export const getLoginEndpoint = ({ collection, collectionOptions, endpointSlug,
163
163
  strategy
164
164
  });
165
165
  debugLogger.info({
166
- msg: 'Token Response',
167
- path,
168
- tokenRes
166
+ msg: 'Received token response',
167
+ path
169
168
  });
170
169
  const { access_token, error, error_description, expires_in: refreshTokenExpires } = tokenRes;
171
170
  if (error) {
@@ -180,8 +179,7 @@ export const getLoginEndpoint = ({ collection, collectionOptions, endpointSlug,
180
179
  const errMsg = 'No access_token was returned from the identity provider.';
181
180
  req.payload.logger.error({
182
181
  msg: errMsg,
183
- path,
184
- tokenRes
182
+ path
185
183
  });
186
184
  throw new APIError(errMsg);
187
185
  }
@@ -206,8 +204,8 @@ export const getLoginEndpoint = ({ collection, collectionOptions, endpointSlug,
206
204
  accessToken: access_token,
207
205
  collection,
208
206
  collectionOptions,
209
- contentSystemId: config.custom.figma.contentSystemId,
210
207
  debugLogger,
208
+ environmentId: config.custom.figma.environmentId,
211
209
  pluginOptions,
212
210
  refreshTokenExpiresIn: refreshTokenExpires,
213
211
  req,
@@ -230,5 +228,3 @@ export const getLoginEndpoint = ({ collection, collectionOptions, endpointSlug,
230
228
  method: collectionOptions.authorizationURLParams?.response_mode === 'query' ? 'get' : 'post',
231
229
  path: `/${endpointSlug}/login`
232
230
  });
233
-
234
- //# sourceMappingURL=getLoginEndpoint.js.map
@@ -9,4 +9,3 @@ interface Args {
9
9
  }
10
10
  export declare const getLogoutEndpoint: ({ collection, endpointSlug, pluginOptions, strategy, }: Args) => Endpoint;
11
11
  export {};
12
- //# sourceMappingURL=getLogoutEndpoint.d.ts.map
@@ -98,5 +98,3 @@ export const getLogoutEndpoint = ({ collection, endpointSlug, pluginOptions, str
98
98
  method: 'get',
99
99
  path: `/${endpointSlug}/logout`
100
100
  });
101
-
102
- //# sourceMappingURL=getLogoutEndpoint.js.map
@@ -10,4 +10,3 @@ interface Args {
10
10
  }
11
11
  export declare const getMetaEndpoint: ({ collection, collectionOptions, endpointSlug, pluginOptions, strategy, }: Args) => Endpoint;
12
12
  export {};
13
- //# sourceMappingURL=getMetaEndpoint.d.ts.map
@@ -36,5 +36,3 @@ export const getMetaEndpoint = ({ collection, collectionOptions, endpointSlug, p
36
36
  method: 'get',
37
37
  path: `/${endpointSlug}/meta`
38
38
  });
39
-
40
- //# sourceMappingURL=getMetaEndpoint.js.map
@@ -10,4 +10,3 @@ interface Args {
10
10
  }
11
11
  export declare const getRedirectToLoginEndpoint: ({ collection, collectionOptions, endpointSlug, pluginOptions, strategy, }: Args) => Endpoint;
12
12
  export {};
13
- //# sourceMappingURL=getRedirectToLoginEndpoint.d.ts.map
@@ -26,5 +26,3 @@ export const getRedirectToLoginEndpoint = ({ collection, collectionOptions, endp
26
26
  method: 'get',
27
27
  path: `/${endpointSlug}/login`
28
28
  });
29
-
30
- //# sourceMappingURL=getRedirectToLoginEndpoint.js.map
@@ -1,3 +1,2 @@
1
1
  export { DefaultLoginButton } from '../components/LoginButton/index.jsx';
2
2
  export { LogoutButton } from '../components/LogoutButton/index.jsx';
3
- //# sourceMappingURL=client.d.ts.map
@@ -1,4 +1,2 @@
1
1
  export { DefaultLoginButton } from '../components/LoginButton/index.jsx';
2
2
  export { LogoutButton } from '../components/LogoutButton/index.jsx';
3
-
4
- //# sourceMappingURL=client.js.map
@@ -5,4 +5,3 @@ export declare const getAfterLogout: ({ collection, cookieName, pluginOptions, }
5
5
  cookieName: string;
6
6
  pluginOptions: PluginOptions;
7
7
  }) => CollectionAfterLogoutHook;
8
- //# sourceMappingURL=afterLogout.d.ts.map
@@ -23,5 +23,3 @@ export const getAfterLogout = ({ collection, cookieName, pluginOptions })=>({ re
23
23
  req
24
24
  });
25
25
  };
26
-
27
- //# sourceMappingURL=afterLogout.js.map
@@ -2,4 +2,3 @@ import { type CollectionMeHook } from 'payload';
2
2
  export declare const getMeHook: ({ cookieName }: {
3
3
  cookieName: string;
4
4
  }) => CollectionMeHook;
5
- //# sourceMappingURL=me.d.ts.map
@@ -51,5 +51,3 @@ export const getMeHook = ({ cookieName })=>// eslint-disable-next-line @typescri
51
51
  }
52
52
  return undefined;
53
53
  };
54
-
55
- //# sourceMappingURL=me.js.map
@@ -5,4 +5,3 @@ export declare const getRefreshHook: ({ pluginOptions, strategy, }: {
5
5
  pluginOptions: PluginOptions;
6
6
  strategy: Strategy;
7
7
  }) => CollectionRefreshHook;
8
- //# sourceMappingURL=refresh.d.ts.map
@@ -88,5 +88,3 @@ export const getRefreshHook = ({ pluginOptions, strategy })=>async ({ args, user
88
88
  }
89
89
  return undefined;
90
90
  };
91
-
92
- //# sourceMappingURL=refresh.js.map
@@ -1,4 +1,3 @@
1
1
  import type { Plugin } from 'payload';
2
2
  import type { PluginOptions } from './types.js';
3
3
  export declare const oAuth2Plugin: (pluginOptions: PluginOptions) => Plugin;
4
- //# sourceMappingURL=index.d.ts.map
@@ -240,5 +240,3 @@ export const oAuth2Plugin = (pluginOptions)=>(config)=>{
240
240
  })
241
241
  };
242
242
  };
243
-
244
- //# sourceMappingURL=index.js.map
@@ -49,4 +49,3 @@ type JwtVerifyArgs = {
49
49
  token: string;
50
50
  };
51
51
  export {};
52
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import * as jose from 'jose';
2
2
  import { APIError, parseCookies } from 'payload';
3
- import { JWTValidationError, validateProjectToken } from '../../auth/jwt-validator.js';
3
+ import { JWTValidationError, validatePayloadAdminToken } from '../../auth/jwt-validator.js';
4
4
  import { getInfraEnvironment } from '../../constants.js';
5
5
  import { createDebugLogger } from '../utilities/createDebugLogger.js';
6
6
  import { getTokenExp } from '../utilities/getTokenExp.js';
@@ -45,16 +45,15 @@ export class Strategy {
45
45
  let oauthToken = cookies.get(this.cookieName);
46
46
  const refreshToken = cookies.get(`${this.cookieName}-refresh`);
47
47
  debugLogger.info({
48
- msg: 'Retrieved tokens from cookies',
49
- oauthToken,
50
- refreshToken
48
+ hasOauthToken: !!oauthToken,
49
+ hasRefreshToken: !!refreshToken,
50
+ msg: 'Retrieved tokens from cookies'
51
51
  });
52
52
  if (!this.collectionOptions.disableJWTFromHeader) {
53
53
  // Parse Authorization header if exists
54
54
  const jwtFromHeader = headers.get('authorization');
55
55
  if (typeof jwtFromHeader === 'string' && jwtFromHeader.startsWith('Bearer ')) {
56
56
  debugLogger.info({
57
- jwtFromHeader,
58
57
  msg: 'Found bearer token in authorization header'
59
58
  });
60
59
  oauthToken = jwtFromHeader.replace('Bearer ', '');
@@ -67,8 +66,7 @@ export class Strategy {
67
66
  // full page load when canSetHeaders=true.
68
67
  if (refreshToken) {
69
68
  debugLogger.info({
70
- msg: 'No access token found, but refresh token exists. Attempting to refresh...',
71
- refreshToken
69
+ msg: 'No access token found, but refresh token exists. Attempting to refresh...'
72
70
  });
73
71
  const refreshed = await refreshTokens({
74
72
  payload,
@@ -103,9 +101,7 @@ export class Strategy {
103
101
  };
104
102
  } else {
105
103
  debugLogger.info({
106
- msg: 'Token refresh failed',
107
- refreshed,
108
- refreshToken
104
+ msg: 'Token refresh failed'
109
105
  });
110
106
  }
111
107
  }
@@ -156,9 +152,7 @@ export class Strategy {
156
152
  strategy: this
157
153
  });
158
154
  debugLogger.info({
159
- msg: 'Token expired. Refreshing...',
160
- refreshed,
161
- refreshToken
155
+ msg: 'Token expired. Refreshing...'
162
156
  });
163
157
  if (refreshed) {
164
158
  const verifyResult = await this.verify({
@@ -185,9 +179,7 @@ export class Strategy {
185
179
  };
186
180
  } else {
187
181
  debugLogger.info({
188
- msg: 'Token refresh failed',
189
- refreshed,
190
- refreshToken
182
+ msg: 'Token refresh failed'
191
183
  });
192
184
  }
193
185
  }
@@ -282,7 +274,15 @@ export class Strategy {
282
274
  }
283
275
  async jwtVerify({ payload, token }) {
284
276
  try {
285
- const verified = await validateProjectToken(token, getInfraEnvironment());
277
+ const audience = payload.config.custom.figma.environmentId;
278
+ if (!audience) {
279
+ throw new Error('Cannot validate token audience: environmentId is not configured');
280
+ }
281
+ const verified = await validatePayloadAdminToken({
282
+ audience,
283
+ environment: getInfraEnvironment(),
284
+ token
285
+ });
286
286
  if (typeof verified !== 'string') {
287
287
  return verified;
288
288
  }
@@ -299,5 +299,3 @@ export class Strategy {
299
299
  return null;
300
300
  }
301
301
  }
302
-
303
- //# sourceMappingURL=index.js.map
@@ -206,4 +206,3 @@ export type DebugLogger = {
206
206
  error: LogFn;
207
207
  info: LogFn;
208
208
  };
209
- //# sourceMappingURL=types.d.ts.map
@@ -1,3 +1 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */ export { };
2
-
3
- //# sourceMappingURL=types.js.map
@@ -6,4 +6,3 @@ export declare const clearCookie: (args: {
6
6
  overrides?: Partial<CookieOptions>;
7
7
  req: PayloadRequest;
8
8
  }) => void;
9
- //# sourceMappingURL=clearCookie.d.ts.map
@@ -21,5 +21,3 @@ export const clearCookie = (args)=>{
21
21
  // cookie, so logout wouldn't clear the session in the cross-site Make iframe.
22
22
  args.req.responseHeaders.append('Set-Cookie', withPartitionedCookie(clearedCookie));
23
23
  };
24
-
25
- //# sourceMappingURL=clearCookie.js.map
@@ -7,4 +7,3 @@ interface Args {
7
7
  }
8
8
  export declare const createCookieOptions: ({ collection, headers, pluginOptions, }: Args) => CookieOptions;
9
9
  export {};
10
- //# sourceMappingURL=createCookieOptions.d.ts.map
@@ -45,5 +45,3 @@ export const createCookieOptions = ({ collection, headers, pluginOptions })=>{
45
45
  }
46
46
  return cookieOptions;
47
47
  };
48
-
49
- //# sourceMappingURL=createCookieOptions.js.map
@@ -1,4 +1,3 @@
1
1
  import type { Payload } from 'payload';
2
2
  import type { DebugLogger } from '../types.js';
3
3
  export declare const createDebugLogger: (payload: Payload, condition?: boolean) => DebugLogger;
4
- //# sourceMappingURL=createDebugLogger.d.ts.map
@@ -12,5 +12,3 @@ export const createDebugLogger = (payload, condition)=>{
12
12
  }
13
13
  };
14
14
  };
15
-
16
- //# sourceMappingURL=createDebugLogger.js.map
@@ -5,8 +5,8 @@ interface Args {
5
5
  accessToken: string;
6
6
  collection: CollectionConfig;
7
7
  collectionOptions: CollectionOptions;
8
- contentSystemId: string;
9
8
  debugLogger: DebugLogger;
9
+ environmentId: string;
10
10
  pluginOptions: PluginOptions;
11
11
  /** From the IdP token response (`expires_in`); used as a refresh-cookie expiry fallback. */
12
12
  refreshTokenExpiresIn?: number;
@@ -15,9 +15,8 @@ interface Args {
15
15
  }
16
16
  /**
17
17
  * Given a valid OAuth access_token: fetch user info (non-fatal), mint a
18
- * project token, and write the main + refresh + user-info cookies to
19
- * `req.responseHeaders`. Throws `APIError` if the project token mint fails.
18
+ * Payload Admin token, and write the main + refresh + user-info cookies to
19
+ * `req.responseHeaders`. Throws `APIError` if the Admin token mint fails.
20
20
  */
21
- export declare const establishSession: ({ accessToken, collection, collectionOptions, contentSystemId, debugLogger, pluginOptions, refreshTokenExpiresIn, req, strategy, }: Args) => Promise<void>;
21
+ export declare const establishSession: ({ accessToken, collection, collectionOptions, debugLogger, environmentId, pluginOptions, refreshTokenExpiresIn, req, strategy, }: Args) => Promise<void>;
22
22
  export {};
23
- //# sourceMappingURL=establishSession.d.ts.map
@@ -1,13 +1,13 @@
1
1
  import { APIError, generateCookie } from 'payload';
2
- import { getProjectToken, getUserInfo } from '../../api/figma-api.js';
2
+ import { getPayloadAdminToken, getUserInfo } from '../../api/figma-api.js';
3
3
  import { createCookieOptions } from './createCookieOptions.js';
4
4
  import { getCookieExpiration } from './getCookieExpiration.js';
5
5
  import { withPartitionedCookie } from './withPartitionedCookie.js';
6
6
  /**
7
7
  * Given a valid OAuth access_token: fetch user info (non-fatal), mint a
8
- * project token, and write the main + refresh + user-info cookies to
9
- * `req.responseHeaders`. Throws `APIError` if the project token mint fails.
10
- */ export const establishSession = async ({ accessToken, collection, collectionOptions, contentSystemId, debugLogger, pluginOptions, refreshTokenExpiresIn, req, strategy })=>{
8
+ * Payload Admin token, and write the main + refresh + user-info cookies to
9
+ * `req.responseHeaders`. Throws `APIError` if the Admin token mint fails.
10
+ */ export const establishSession = async ({ accessToken, collection, collectionOptions, debugLogger, environmentId, pluginOptions, refreshTokenExpiresIn, req, strategy })=>{
11
11
  const oauthCredential = {
12
12
  type: 'oauth',
13
13
  token: accessToken
@@ -17,7 +17,6 @@ import { withPartitionedCookie } from './withPartitionedCookie.js';
17
17
  try {
18
18
  figmaUserInfo = await getUserInfo(oauthCredential);
19
19
  debugLogger.info({
20
- figmaUserInfo,
21
20
  msg: 'Fetched Figma user info'
22
21
  });
23
22
  } catch (err) {
@@ -26,9 +25,9 @@ import { withPartitionedCookie } from './withPartitionedCookie.js';
26
25
  msg: 'Failed to fetch Figma user info'
27
26
  });
28
27
  }
29
- const projectToken = await getProjectToken(oauthCredential, contentSystemId);
30
- if (!projectToken.token) {
31
- const errMsg = 'No project token returned from Figma API';
28
+ const adminToken = await getPayloadAdminToken(oauthCredential, environmentId);
29
+ if (!adminToken.token) {
30
+ const errMsg = 'No Payload Admin token returned from Figma API';
32
31
  req.payload.logger.error({
33
32
  msg: errMsg
34
33
  });
@@ -54,13 +53,13 @@ import { withPartitionedCookie } from './withPartitionedCookie.js';
54
53
  });
55
54
  req.responseHeaders.append('Set-Cookie', withPartitionedCookie(refreshCookie));
56
55
  }
57
- const tokenExpires = cookieOptions?.expires ? getCookieExpiration(cookieOptions.expires) : new Date(projectToken.expiresAt);
56
+ const tokenExpires = cookieOptions?.expires ? getCookieExpiration(cookieOptions.expires) : new Date(adminToken.expiresAt);
58
57
  const tokenCookie = generateCookie({
59
58
  ...cookieOptions,
60
59
  name: strategy.cookieName,
61
60
  expires: tokenExpires,
62
61
  returnCookieAsObject: false,
63
- value: projectToken.token
62
+ value: adminToken.token
64
63
  });
65
64
  req.responseHeaders.append('Set-Cookie', withPartitionedCookie(tokenCookie));
66
65
  // Short-lived handoff cookie consumed by defaultVerify on the next request.
@@ -79,5 +78,3 @@ import { withPartitionedCookie } from './withPartitionedCookie.js';
79
78
  req.responseHeaders.append('Set-Cookie', withPartitionedCookie(userInfoCookie));
80
79
  }
81
80
  };
82
-
83
- //# sourceMappingURL=establishSession.js.map
@@ -21,4 +21,3 @@ export interface TokenEndpointResponse {
21
21
  */
22
22
  export declare const exchangeCodeForAccessToken: ({ code, codeVerifier, redirectUri, strategy, }: Args) => Promise<TokenEndpointResponse>;
23
23
  export {};
24
- //# sourceMappingURL=exchangeCodeForAccessToken.d.ts.map
@@ -24,5 +24,3 @@
24
24
  });
25
25
  return await res.json();
26
26
  };
27
-
28
- //# sourceMappingURL=exchangeCodeForAccessToken.js.map
@@ -1,2 +1 @@
1
1
  export declare const extractOrigin: (url: string) => null | string;
2
- //# sourceMappingURL=extractOrigin.d.ts.map
@@ -8,5 +8,3 @@ export const extractOrigin = (url)=>{
8
8
  ;
9
9
  }
10
10
  };
11
-
12
- //# sourceMappingURL=extractOrigin.js.map
@@ -1,3 +1,2 @@
1
1
  export declare const FIGMA_HOSTNAMES: Set<string>;
2
2
  export declare const isFigmaOrigin: (origin: string) => boolean;
3
- //# sourceMappingURL=figmaHostnames.d.ts.map
@@ -22,5 +22,3 @@ export const isFigmaOrigin = (origin)=>{
22
22
  return false;
23
23
  }
24
24
  };
25
-
26
- //# sourceMappingURL=figmaHostnames.js.map
@@ -1,3 +1,2 @@
1
1
  import type { Config } from 'payload';
2
2
  export declare const getAdminCollectionSlug: (config: Config) => string;
3
- //# sourceMappingURL=getAdminCollectionSlug.d.ts.map
@@ -14,5 +14,3 @@ export const getAdminCollectionSlug = (config)=>{
14
14
  // Otherwise, assume that it'll be the built-in auth
15
15
  return 'users';
16
16
  };
17
-
18
- //# sourceMappingURL=getAdminCollectionSlug.js.map
@@ -78,4 +78,3 @@ export declare const buildCsrfCookieHeader: (nonce: string) => string;
78
78
  */
79
79
  export declare const buildCsrfCookieClearHeader: () => string;
80
80
  export {};
81
- //# sourceMappingURL=getAuthorizeURL.d.ts.map