@baseplate-dev/plugin-auth 0.1.2 → 1.0.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.
Files changed (242) hide show
  1. package/dist/auth/core/common.d.ts +1 -0
  2. package/dist/auth/core/common.d.ts.map +1 -1
  3. package/dist/auth/core/common.js.map +1 -1
  4. package/dist/auth/core/node.d.ts.map +1 -1
  5. package/dist/auth/core/node.js +6 -3
  6. package/dist/auth/core/node.js.map +1 -1
  7. package/dist/auth/core/schema/models.d.ts.map +1 -1
  8. package/dist/auth/core/schema/models.js +11 -0
  9. package/dist/auth/core/schema/models.js.map +1 -1
  10. package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts +13 -1
  11. package/dist/auth/generators/fastify/auth-module/auth-module.generator.d.ts.map +1 -1
  12. package/dist/auth/generators/fastify/auth-module/auth-module.generator.js +20 -8
  13. package/dist/auth/generators/fastify/auth-module/auth-module.generator.js.map +1 -1
  14. package/dist/auth/generators/fastify/auth-module/generated/index.d.ts +88 -0
  15. package/dist/auth/generators/fastify/auth-module/generated/index.d.ts.map +1 -0
  16. package/dist/auth/generators/fastify/auth-module/generated/index.js +9 -0
  17. package/dist/auth/generators/fastify/auth-module/generated/index.js.map +1 -0
  18. package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts +16 -0
  19. package/dist/auth/generators/fastify/auth-module/generated/template-paths.d.ts.map +1 -0
  20. package/dist/auth/generators/fastify/auth-module/generated/template-paths.js +26 -0
  21. package/dist/auth/generators/fastify/auth-module/generated/template-paths.js.map +1 -0
  22. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts +10 -0
  23. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.d.ts.map +1 -0
  24. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js +23 -0
  25. package/dist/auth/generators/fastify/auth-module/generated/ts-import-providers.js.map +1 -0
  26. package/dist/auth/generators/fastify/auth-module/generated/{ts-templates.d.ts → typed-templates.d.ts} +26 -41
  27. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.d.ts.map +1 -0
  28. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js +68 -0
  29. package/dist/auth/generators/fastify/auth-module/generated/typed-templates.js.map +1 -0
  30. package/dist/auth/generators/fastify/auth-module/index.d.ts +2 -0
  31. package/dist/auth/generators/fastify/auth-module/index.d.ts.map +1 -0
  32. package/dist/auth/generators/fastify/auth-module/index.js +2 -0
  33. package/dist/auth/generators/fastify/auth-module/index.js.map +1 -0
  34. package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/cookie-signer.ts +6 -0
  35. package/dist/auth/generators/fastify/index.d.ts +1 -1
  36. package/dist/auth/generators/fastify/index.d.ts.map +1 -1
  37. package/dist/auth/generators/fastify/index.js +1 -1
  38. package/dist/auth/generators/fastify/index.js.map +1 -1
  39. package/dist/auth0/core/schema/models.d.ts.map +1 -1
  40. package/dist/auth0/core/schema/models.js +6 -0
  41. package/dist/auth0/core/schema/models.js.map +1 -1
  42. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +14 -6
  43. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  44. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +11 -16
  45. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
  46. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +62 -0
  47. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -0
  48. package/dist/auth0/generators/fastify/auth0-module/generated/index.js +9 -0
  49. package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +1 -0
  50. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +13 -0
  51. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -0
  52. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +23 -0
  53. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -0
  54. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +10 -0
  55. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +1 -0
  56. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +23 -0
  57. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +1 -0
  58. package/dist/auth0/generators/fastify/auth0-module/generated/{ts-templates.d.ts → typed-templates.d.ts} +2 -2
  59. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -0
  60. package/dist/auth0/generators/fastify/auth0-module/generated/{ts-templates.js → typed-templates.js} +11 -8
  61. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -0
  62. package/dist/auth0/generators/fastify/auth0-module/index.d.ts +2 -0
  63. package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +1 -0
  64. package/dist/auth0/generators/fastify/auth0-module/index.js +2 -0
  65. package/dist/auth0/generators/fastify/auth0-module/index.js.map +1 -0
  66. package/dist/auth0/generators/fastify/index.d.ts +1 -1
  67. package/dist/auth0/generators/fastify/index.d.ts.map +1 -1
  68. package/dist/auth0/generators/fastify/index.js +1 -1
  69. package/dist/auth0/generators/fastify/index.js.map +1 -1
  70. package/dist/auth0/generators/react/auth0-apollo/index.d.ts +2 -0
  71. package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +1 -0
  72. package/dist/auth0/generators/react/auth0-apollo/index.js +2 -0
  73. package/dist/auth0/generators/react/auth0-apollo/index.js.map +1 -0
  74. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts +101 -8
  75. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts.map +1 -1
  76. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js +10 -11
  77. package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js.map +1 -1
  78. package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts +290 -0
  79. package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts.map +1 -0
  80. package/dist/auth0/generators/react/auth0-callback/generated/index.js +7 -0
  81. package/dist/auth0/generators/react/auth0-callback/generated/index.js.map +1 -0
  82. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts +13 -0
  83. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.d.ts.map +1 -0
  84. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js +23 -0
  85. package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js.map +1 -0
  86. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts +280 -0
  87. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.d.ts.map +1 -0
  88. package/dist/auth0/generators/react/auth0-callback/generated/{ts-templates.js → typed-templates.js} +11 -9
  89. package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js.map +1 -0
  90. package/dist/auth0/generators/react/auth0-callback/index.d.ts +2 -0
  91. package/dist/auth0/generators/react/auth0-callback/index.d.ts.map +1 -0
  92. package/dist/auth0/generators/react/auth0-callback/index.js +2 -0
  93. package/dist/auth0/generators/react/auth0-callback/index.js.map +1 -0
  94. package/dist/auth0/generators/react/auth0-callback/templates/{auth0-callback.page.tsx → routes/auth0-callback.page.tsx} +3 -3
  95. package/dist/auth0/generators/react/auth0-callback/templates/{signup.page.tsx → routes/signup.page.tsx} +3 -3
  96. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts +106 -12
  97. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.d.ts.map +1 -1
  98. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js +12 -16
  99. package/dist/auth0/generators/react/auth0-components/auth0-components.generator.js.map +1 -1
  100. package/dist/auth0/generators/react/auth0-components/generated/index.d.ts +151 -0
  101. package/dist/auth0/generators/react/auth0-components/generated/index.d.ts.map +1 -0
  102. package/dist/auth0/generators/react/auth0-components/generated/index.js +9 -0
  103. package/dist/auth0/generators/react/auth0-components/generated/index.js.map +1 -0
  104. package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts +12 -0
  105. package/dist/auth0/generators/react/auth0-components/generated/template-paths.d.ts.map +1 -0
  106. package/dist/auth0/generators/react/auth0-components/generated/template-paths.js +22 -0
  107. package/dist/auth0/generators/react/auth0-components/generated/template-paths.js.map +1 -0
  108. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts +10 -0
  109. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.d.ts.map +1 -0
  110. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js +25 -0
  111. package/dist/auth0/generators/react/auth0-components/generated/ts-import-providers.js.map +1 -0
  112. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts +132 -0
  113. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.d.ts.map +1 -0
  114. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js +17 -0
  115. package/dist/auth0/generators/react/auth0-components/generated/typed-templates.js.map +1 -0
  116. package/dist/auth0/generators/react/auth0-components/index.d.ts +2 -0
  117. package/dist/auth0/generators/react/auth0-components/index.d.ts.map +1 -0
  118. package/dist/auth0/generators/react/auth0-components/index.js +2 -0
  119. package/dist/auth0/generators/react/auth0-components/index.js.map +1 -0
  120. package/dist/auth0/generators/react/auth0-components/templates/{RequireAuth.tsx → src/components/require-auth/require-auth.tsx} +4 -4
  121. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +10 -2
  122. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  123. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +13 -24
  124. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  125. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +51 -0
  126. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -0
  127. package/dist/auth0/generators/react/auth0-hooks/generated/index.js +9 -0
  128. package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +1 -0
  129. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +16 -0
  130. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -0
  131. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +26 -0
  132. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -0
  133. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +16 -0
  134. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -0
  135. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +27 -0
  136. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -0
  137. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +44 -0
  138. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -0
  139. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +67 -0
  140. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -0
  141. package/dist/auth0/generators/react/auth0-hooks/index.d.ts +2 -0
  142. package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +1 -0
  143. package/dist/auth0/generators/react/auth0-hooks/index.js +2 -0
  144. package/dist/auth0/generators/react/auth0-hooks/index.js.map +1 -0
  145. package/dist/auth0/generators/react/index.d.ts +5 -5
  146. package/dist/auth0/generators/react/index.d.ts.map +1 -1
  147. package/dist/auth0/generators/react/index.js +5 -5
  148. package/dist/auth0/generators/react/index.js.map +1 -1
  149. package/dist/auth0/generators/react/react-auth0/index.d.ts +2 -0
  150. package/dist/auth0/generators/react/react-auth0/index.d.ts.map +1 -0
  151. package/dist/auth0/generators/react/react-auth0/index.js +2 -0
  152. package/dist/auth0/generators/react/react-auth0/index.js.map +1 -0
  153. package/dist/web/assets/{__federation_expose_auth0CoreCommon--n6esVYP.js → __federation_expose_auth0CoreCommon-hOTVdirQ.js} +3 -3
  154. package/dist/web/assets/{__federation_expose_auth0CoreCommon--n6esVYP.js.map → __federation_expose_auth0CoreCommon-hOTVdirQ.js.map} +1 -1
  155. package/dist/web/assets/{__federation_expose_auth0CoreWeb-Ql6gpX5q.js → __federation_expose_auth0CoreWeb-xV61eveJ.js} +13 -9
  156. package/dist/web/assets/__federation_expose_auth0CoreWeb-xV61eveJ.js.map +1 -0
  157. package/dist/web/assets/__federation_expose_authCoreCommon-CndjGc3R.js +36 -0
  158. package/dist/web/assets/__federation_expose_authCoreCommon-CndjGc3R.js.map +1 -0
  159. package/dist/web/assets/__federation_expose_authCoreWeb-CJ4-gYAU.js +442 -0
  160. package/dist/web/assets/__federation_expose_authCoreWeb-CJ4-gYAU.js.map +1 -0
  161. package/dist/web/assets/{__federation_fn_import-BiwmVFwy.js → __federation_fn_import-Drn1CtCD.js} +2 -2
  162. package/dist/web/assets/{__federation_fn_import-BiwmVFwy.js.map → __federation_fn_import-Drn1CtCD.js.map} +1 -1
  163. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-CY8oz43s.js → web-CcNXBRTZ.js} +18 -7
  164. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-CcNXBRTZ.js.map +1 -0
  165. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-B62IPizQ.js → project-builder-lib-Tb9xtEo4.js} +162 -829
  166. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-Tb9xtEo4.js.map +1 -0
  167. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BU2QTWNs.js → ui-components-0t9VhwId.js} +17757 -9806
  168. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-0t9VhwId.js.map +1 -0
  169. package/dist/web/assets/{index-CgJx-krK.js → index-CZqpaSlN.js} +10 -4
  170. package/dist/web/assets/{index-CgJx-krK.js.map → index-CZqpaSlN.js.map} +1 -1
  171. package/dist/web/assets/{index.esm-BcxPd7Ha.js → index.esm-SbEmZvZj.js} +3 -3
  172. package/dist/web/assets/{index.esm-BcxPd7Ha.js.map → index.esm-SbEmZvZj.js.map} +1 -1
  173. package/dist/web/assets/{model-utils-CbQJy1wE.js → model-merger-BLh0ERqk.js} +807 -19
  174. package/dist/web/assets/model-merger-BLh0ERqk.js.map +1 -0
  175. package/dist/web/assets/plugin-definition-CNgM5Juv.js +34 -0
  176. package/dist/web/assets/plugin-definition-CNgM5Juv.js.map +1 -0
  177. package/dist/web/assets/plugin-definition-CQ2no5O3.js +22 -0
  178. package/dist/web/assets/plugin-definition-CQ2no5O3.js.map +1 -0
  179. package/dist/web/assets/{react-2jQE8aG0.js → react-BiQIVSjI.js} +2 -2
  180. package/dist/web/assets/{react-2jQE8aG0.js.map → react-BiQIVSjI.js.map} +1 -1
  181. package/dist/web/assets/remoteEntry.js +8 -2
  182. package/dist/web/assets/remoteEntry.js.map +1 -1
  183. package/dist/web/assets/{plugin-definition-BQRupXoQ.js → schema-CaLuKwEg.js} +16 -27
  184. package/dist/web/assets/schema-CaLuKwEg.js.map +1 -0
  185. package/dist/web/assets/styles-BPCQNyj6.js +8 -0
  186. package/dist/web/assets/styles-BPCQNyj6.js.map +1 -0
  187. package/manifest.json +1 -1
  188. package/package.json +23 -13
  189. package/dist/auth/generators/fastify/auth-module/generated/ts-templates.d.ts.map +0 -1
  190. package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js +0 -94
  191. package/dist/auth/generators/fastify/auth-module/generated/ts-templates.js.map +0 -1
  192. package/dist/auth/generators/fastify/auth-module/templates/management.ts +0 -22
  193. package/dist/auth/generators/fastify/auth-module/templates/schema/user-session-payload.object-type.ts +0 -23
  194. package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.mutations.ts +0 -22
  195. package/dist/auth/generators/fastify/auth-module/templates/schema/user-session.queries.ts +0 -20
  196. package/dist/auth/generators/fastify/auth-module/templates/user-session.service.ts +0 -101
  197. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts +0 -3
  198. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.d.ts.map +0 -1
  199. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js +0 -12
  200. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-maps.js.map +0 -1
  201. package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.d.ts.map +0 -1
  202. package/dist/auth0/generators/fastify/auth0-module/generated/ts-templates.js.map +0 -1
  203. package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts +0 -106
  204. package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.d.ts.map +0 -1
  205. package/dist/auth0/generators/react/auth0-callback/generated/ts-templates.js.map +0 -1
  206. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts +0 -3
  207. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.d.ts.map +0 -1
  208. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js +0 -12
  209. package/dist/auth0/generators/react/auth0-components/generated/ts-import-maps.js.map +0 -1
  210. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts +0 -45
  211. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.d.ts.map +0 -1
  212. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js +0 -13
  213. package/dist/auth0/generators/react/auth0-components/generated/ts-templates.js.map +0 -1
  214. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts +0 -8
  215. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.d.ts.map +0 -1
  216. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js +0 -12
  217. package/dist/auth0/generators/react/auth0-hooks/generated/text-templates.js.map +0 -1
  218. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts +0 -3
  219. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.d.ts.map +0 -1
  220. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js +0 -16
  221. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-maps.js.map +0 -1
  222. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts +0 -33
  223. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.d.ts.map +0 -1
  224. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js +0 -50
  225. package/dist/auth0/generators/react/auth0-hooks/generated/ts-templates.js.map +0 -1
  226. package/dist/web/assets/__federation_expose_auth0CoreWeb-Ql6gpX5q.js.map +0 -1
  227. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-CY8oz43s.js.map +0 -1
  228. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B62IPizQ.js.map +0 -1
  229. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BU2QTWNs.js.map +0 -1
  230. package/dist/web/assets/model-utils-CbQJy1wE.js.map +0 -1
  231. package/dist/web/assets/plugin-definition-BQRupXoQ.js.map +0 -1
  232. /package/dist/auth/generators/fastify/auth-module/templates/{user-session.constants.ts → module/constants/user-session.constants.ts} +0 -0
  233. /package/dist/auth/generators/fastify/auth-module/templates/{services → module/services}/user-session.service.ts +0 -0
  234. /package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/session-cookie.ts +0 -0
  235. /package/dist/auth/generators/fastify/auth-module/templates/{utils → module/utils}/verify-request-origin.ts +0 -0
  236. /package/dist/auth0/generators/fastify/auth0-module/templates/{management.ts → module/services/management.ts} +0 -0
  237. /package/dist/auth0/generators/fastify/auth0-module/templates/{user-session.service.ts → module/services/user-session.service.ts} +0 -0
  238. /package/dist/auth0/generators/react/auth0-hooks/templates/{useCurrentUser.gql → src/hooks/useCurrentUser.gql} +0 -0
  239. /package/dist/auth0/generators/react/auth0-hooks/templates/{useCurrentUser.ts → src/hooks/useCurrentUser.ts} +0 -0
  240. /package/dist/auth0/generators/react/auth0-hooks/templates/{useLogOut.ts → src/hooks/useLogOut.ts} +0 -0
  241. /package/dist/auth0/generators/react/auth0-hooks/templates/{useRequiredUserId.ts → src/hooks/useRequiredUserId.ts} +0 -0
  242. /package/dist/auth0/generators/react/auth0-hooks/templates/{useSession.ts → src/hooks/useSession.ts} +0 -0
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@baseplate-dev/plugin-auth",
3
- "version": "0.1.2",
3
+ "version": "1.0.0",
4
4
  "description": "Contains the auth plugin for Baseplate",
5
+ "keywords": [
6
+ "authentication",
7
+ "plugin",
8
+ "full-stack",
9
+ "typescript",
10
+ "baseplate",
11
+ "code-generation"
12
+ ],
5
13
  "homepage": "https://www.baseplate.dev",
6
14
  "repository": "https://github.com/halfdomelabs/baseplate",
7
15
  "license": "MPL-2.0",
@@ -12,10 +20,12 @@
12
20
  },
13
21
  "main": "dist/index.js",
14
22
  "files": [
23
+ "README.md",
15
24
  "LICENSE",
25
+ "CHANGELOG",
16
26
  "dist/**/*",
17
27
  "!dist/**/*.d.ts.map",
18
- "CHANGELOG",
28
+ "!dist/**/*.tsbuildinfo",
19
29
  "manifest.json"
20
30
  ],
21
31
  "dependencies": {
@@ -25,10 +35,10 @@
25
35
  "react-hook-form": "7.56.3",
26
36
  "react-icons": "5.5.0",
27
37
  "zod": "3.24.1",
28
- "@baseplate-dev/core-generators": "0.1.2",
29
- "@baseplate-dev/fastify-generators": "0.1.2",
30
- "@baseplate-dev/react-generators": "0.1.2",
31
- "@baseplate-dev/ui-components": "0.1.2"
38
+ "@baseplate-dev/core-generators": "0.2.0",
39
+ "@baseplate-dev/fastify-generators": "0.2.0",
40
+ "@baseplate-dev/react-generators": "0.2.0",
41
+ "@baseplate-dev/ui-components": "0.2.0"
32
42
  },
33
43
  "devDependencies": {
34
44
  "@originjs/vite-plugin-federation": "1.3.6",
@@ -38,20 +48,20 @@
38
48
  "@types/react-dom": "19.1.3",
39
49
  "@vitejs/plugin-react": "4.4.1",
40
50
  "concurrently": "9.0.1",
41
- "cpx2": "7.0.1",
51
+ "cpx2": "8.0.0",
42
52
  "eslint": "9.26.0",
43
53
  "prettier": "3.5.3",
44
54
  "tailwindcss": "4.1.6",
45
55
  "typescript": "5.7.3",
46
56
  "vite": "6.3.5",
47
57
  "vitest": "3.0.7",
48
- "@baseplate-dev/project-builder-lib": "0.1.2",
49
- "@baseplate-dev/sync": "0.1.2",
50
- "@baseplate-dev/tools": "0.1.2"
58
+ "@baseplate-dev/project-builder-lib": "0.2.0",
59
+ "@baseplate-dev/tools": "0.2.0",
60
+ "@baseplate-dev/sync": "0.2.0"
51
61
  },
52
62
  "peerDependencies": {
53
- "@baseplate-dev/project-builder-lib": "0.1.2",
54
- "@baseplate-dev/sync": "0.1.2"
63
+ "@baseplate-dev/project-builder-lib": "0.2.0",
64
+ "@baseplate-dev/sync": "0.2.0"
55
65
  },
56
66
  "engines": {
57
67
  "node": "^22.0.0"
@@ -72,10 +82,10 @@
72
82
  "lint": "eslint .",
73
83
  "prettier:check": "prettier --check .",
74
84
  "prettier:write": "prettier -w .",
85
+ "tsc:watch": "tsc -p tsconfig.build.json --preserveWatchOutput -w",
75
86
  "typecheck": "tsc --noEmit",
76
87
  "watch": "concurrently pnpm:watch:*",
77
88
  "watch:static": "pnpm build:static --watch",
78
- "watch:tsc": "tsc -p tsconfig.build.json --preserveWatchOutput -w",
79
89
  "watch:vite": "vite build --watch"
80
90
  }
81
91
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/generators/fastify/auth-module/generated/ts-templates.ts"],"names":[],"mappings":"AA0GA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO5C,CAAC"}
@@ -1,94 +0,0 @@
1
- import { createTsTemplateFile, createTsTemplateGroup, } from '@baseplate-dev/core-generators';
2
- import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, errorHandlerServiceImportsProvider, pothosImportsProvider, requestServiceContextImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
3
- const schemaUserSessionMutations = createTsTemplateFile({
4
- group: 'schema',
5
- importMapProviders: { pothosImports: pothosImportsProvider },
6
- name: 'schema-user-session-mutations',
7
- projectExports: {},
8
- source: { path: 'schema/user-session.mutations.ts' },
9
- variables: {},
10
- });
11
- const schemaUserSessionQueries = createTsTemplateFile({
12
- group: 'schema',
13
- importMapProviders: { pothosImports: pothosImportsProvider },
14
- name: 'schema-user-session-queries',
15
- projectExports: {},
16
- source: { path: 'schema/user-session.queries.ts' },
17
- variables: { TPL_PRISMA_USER: {} },
18
- });
19
- const userSessionPayloadObjectType = createTsTemplateFile({
20
- group: 'schema',
21
- importMapProviders: { pothosImports: pothosImportsProvider },
22
- name: 'user-session-payload-object-type',
23
- projectExports: { userSessionPayload: {} },
24
- source: { path: 'schema/user-session-payload.object-type.ts' },
25
- variables: { TPL_PRISMA_USER: {}, TPL_USER_OBJECT_TYPE: {} },
26
- });
27
- const schemaGroup = createTsTemplateGroup({
28
- templates: {
29
- schemaUserSessionMutations: {
30
- destination: 'user-session.mutations.ts',
31
- template: schemaUserSessionMutations,
32
- },
33
- schemaUserSessionQueries: {
34
- destination: 'user-session.queries.ts',
35
- template: schemaUserSessionQueries,
36
- },
37
- userSessionPayloadObjectType: {
38
- destination: 'user-session-payload.object-type.ts',
39
- template: userSessionPayloadObjectType,
40
- },
41
- },
42
- });
43
- const servicesUserSessionService = createTsTemplateFile({
44
- importMapProviders: {
45
- authContextImports: authContextImportsProvider,
46
- authRolesImports: authRolesImportsProvider,
47
- configServiceImports: configServiceImportsProvider,
48
- errorHandlerServiceImports: errorHandlerServiceImportsProvider,
49
- requestServiceContextImports: requestServiceContextImportsProvider,
50
- userSessionTypesImports: userSessionTypesImportsProvider,
51
- },
52
- name: 'services-user-session-service',
53
- projectExports: { userSessionService: {} },
54
- source: { path: 'services/user-session.service.ts' },
55
- variables: { TPL_PRISMA_USER_SESSION: {} },
56
- });
57
- const userSessionConstants = createTsTemplateFile({
58
- name: 'user-session-constants',
59
- projectExports: {
60
- USER_SESSION_DURATION_SEC: {},
61
- USER_SESSION_MAX_LIFETIME_SEC: {},
62
- USER_SESSION_RENEWAL_THRESHOLD_SEC: {},
63
- },
64
- source: { path: 'user-session.constants.ts' },
65
- variables: {},
66
- });
67
- const utilsCookieSigner = createTsTemplateFile({
68
- name: 'utils-cookie-signer',
69
- projectExports: { sign: {}, signObject: {}, unsign: {}, unsignObject: {} },
70
- source: { path: 'utils/cookie-signer.ts' },
71
- variables: {},
72
- });
73
- const utilsSessionCookie = createTsTemplateFile({
74
- importMapProviders: { configServiceImports: configServiceImportsProvider },
75
- name: 'utils-session-cookie',
76
- projectExports: { getUserSessionCookieName: {} },
77
- source: { path: 'utils/session-cookie.ts' },
78
- variables: {},
79
- });
80
- const utilsVerifyRequestOrigin = createTsTemplateFile({
81
- name: 'utils-verify-request-origin',
82
- projectExports: { verifyRequestOrigin: {} },
83
- source: { path: 'utils/verify-request-origin.ts' },
84
- variables: {},
85
- });
86
- export const FASTIFY_AUTH_MODULE_TS_TEMPLATES = {
87
- schemaGroup,
88
- servicesUserSessionService,
89
- userSessionConstants,
90
- utilsCookieSigner,
91
- utilsSessionCookie,
92
- utilsVerifyRequestOrigin,
93
- };
94
- //# sourceMappingURL=ts-templates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.js","sourceRoot":"","sources":["../../../../../../src/auth/generators/fastify/auth-module/generated/ts-templates.ts"],"names":[],"mappings":"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"}
@@ -1,22 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { config } from '%configServiceImports';
4
- import { ManagementClient } from 'auth';
5
-
6
- let cachedClient: ManagementClient | null = null;
7
-
8
- export function getAuthManagementClient(): ManagementClient {
9
- if (cachedClient) {
10
- return cachedClient;
11
- }
12
-
13
- const client = new ManagementClient({
14
- domain: config.AUTH_TENANT_DOMAIN,
15
- clientId: config.AUTH_CLIENT_ID,
16
- clientSecret: config.AUTH_CLIENT_SECRET,
17
- });
18
-
19
- cachedClient = client;
20
-
21
- return client;
22
- }
@@ -1,23 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { builder } from '%pothosImports';
4
-
5
- export const userSessionPayload = builder.simpleObject(
6
- 'UserSessionPayload',
7
- {
8
- fields: (t) => ({
9
- expiresAt: t.field({ type: 'DateTime' }),
10
- userId: t.field({ type: 'Uuid' }),
11
- }),
12
- },
13
- (t) => ({
14
- user: t.prismaField({
15
- type: TPL_USER_OBJECT_TYPE,
16
- resolve: async (query, root) =>
17
- TPL_PRISMA_USER.findUniqueOrThrow({
18
- where: { id: root.userId },
19
- ...query,
20
- }),
21
- }),
22
- }),
23
- );
@@ -1,22 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { builder } from '%pothosImports';
4
-
5
- import { userSessionService } from '../services/user-session.service.js';
6
-
7
- builder.mutationField('logOut', (t) =>
8
- t.fieldWithInputPayload({
9
- payload: {
10
- success: t.payload.boolean({
11
- description: 'Whether the logout was successful.',
12
- }),
13
- },
14
- resolve: async (parent, args, context) => {
15
- if (context.auth.session && context.auth.session.type === 'user') {
16
- await userSessionService.clearSession(context.auth.session, context);
17
- }
18
-
19
- return { success: true };
20
- },
21
- }),
22
- );
@@ -1,20 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { builder } from '%pothosImports';
4
-
5
- builder.queryField('currentUser', (t) =>
6
- t.prismaField({
7
- type: 'User',
8
- nullable: true,
9
- resolve: async (query, root, args, { auth }) => {
10
- if (!auth.userId) {
11
- return null;
12
- }
13
-
14
- return TPL_PRISMA_USER.findUniqueOrThrow({
15
- ...query,
16
- where: { id: auth.userId },
17
- });
18
- },
19
- }),
20
- );
@@ -1,101 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import type { AuthUserSessionInfo } from '%authContextImports';
4
- import type { AuthRole } from '%authRolesImports';
5
- import type { UserSessionService } from '%userSessionTypesImports';
6
- import type { FastifyRequest } from 'fastify';
7
-
8
- import { DEFAULT_USER_ROLES } from '%authRolesImports';
9
-
10
- const USER_ID_CLAIM = 'https://app.com/user_id';
11
- const EMAIL_CLAIM = 'https://app.com/email';
12
- const EMAIL_VERIFIED_CLAIM = 'https://app.com/email_verified';
13
- const ROLES_CLAIM = 'https://app.com/roles';
14
-
15
- interface AuthJwt {
16
- [USER_ID_CLAIM]?: string;
17
- [EMAIL_CLAIM]?: string;
18
- [EMAIL_VERIFIED_CLAIM]?: boolean;
19
- [ROLES_CLAIM]?: string[];
20
- sub: string;
21
- email: string;
22
- exp: number;
23
- }
24
-
25
- export class AuthUserSessionService implements UserSessionService {
26
- /**
27
- * Retrieves the user session information from the request.
28
- *
29
- * @param req - The Fastify request object containing the cookies.
30
- * @param reply - The Fastify reply object used to set or clear cookies.
31
- * @param currentDate - The current date used for session validation. Defaults to the current date and time.
32
- * @returns A promise that resolves to the authenticated user session information or null if the session is invalid.
33
- * @throws {InvalidSessionError} If the session is invalid or expired.
34
- */
35
- async getSessionInfoFromRequest(
36
- req: FastifyRequest,
37
- ): Promise<AuthUserSessionInfo | undefined> {
38
- if (!req.headers.authorization) {
39
- return undefined;
40
- }
41
-
42
- const verifiedJwt = await req.jwtVerify<AuthJwt>();
43
- const userId = verifiedJwt[USER_ID_CLAIM];
44
- const roles = verifiedJwt[ROLES_CLAIM] ?? [];
45
- const email = verifiedJwt[EMAIL_CLAIM];
46
-
47
- if (!userId) {
48
- throw new Error(`Missing user id in JWT`);
49
- }
50
-
51
- const user = await TPL_USER_MODEL.findUnique({ where: { id: userId } });
52
-
53
- // create user if one does not exist already
54
- if (!email) {
55
- throw new Error(`Missing email claim in JWT`);
56
- }
57
- if (!user) {
58
- // Use createMany to avoid race-conditions with creating the user
59
- await TPL_USER_MODEL.createMany({
60
- data: [
61
- {
62
- id: userId,
63
- authId: verifiedJwt.sub,
64
- email,
65
- },
66
- ],
67
- skipDuplicates: true,
68
- });
69
- }
70
-
71
- return {
72
- id: verifiedJwt.sub,
73
- type: 'user',
74
- userId,
75
- roles: [...DEFAULT_USER_ROLES, ...roles] as AuthRole[],
76
- expiresAt:
77
- typeof verifiedJwt.exp === 'number'
78
- ? new Date(verifiedJwt.exp * 1000)
79
- : undefined,
80
- };
81
- }
82
-
83
- /**
84
- * Retrieves the user session information from the authentication token
85
- *
86
- * @param req The request object
87
- * @returns The session info or undefined if no session is found
88
- */
89
- async getSessionInfoFromToken(
90
- req: FastifyRequest,
91
- token?: string | null,
92
- ): Promise<AuthUserSessionInfo | undefined> {
93
- // We have to manually add the header to the request since we can't
94
- // use server.jwt.verify due to an error
95
- req.headers.authorization = token ?? undefined;
96
-
97
- return this.getSessionInfoFromRequest(req);
98
- }
99
- }
100
-
101
- export const userSessionService = new AuthUserSessionService();
@@ -1,3 +0,0 @@
1
- import type { UserSessionServiceImportsProvider } from '@baseplate-dev/fastify-generators';
2
- export declare function createAuth0ModuleImports(importBase: string): UserSessionServiceImportsProvider;
3
- //# sourceMappingURL=ts-import-maps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-import-maps.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/ts-import-maps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAM3F,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,iCAAiC,CAQnC"}
@@ -1,12 +0,0 @@
1
- import { createTsImportMap } from '@baseplate-dev/core-generators';
2
- import { userSessionServiceImportsSchema } from '@baseplate-dev/fastify-generators';
3
- import path from 'node:path/posix';
4
- export function createAuth0ModuleImports(importBase) {
5
- if (!importBase.startsWith('@/')) {
6
- throw new Error('importBase must start with @/');
7
- }
8
- return createTsImportMap(userSessionServiceImportsSchema, {
9
- userSessionService: path.join(importBase, 'user-session.service.js'),
10
- });
11
- }
12
- //# sourceMappingURL=ts-import-maps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-import-maps.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/ts-import-maps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,iBAAiB,CAAC,+BAA+B,EAAE;QACxD,kBAAkB,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,yBAAyB,CAAC;KACrE,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/ts-templates.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG7C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/ts-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,UAAU,GAAG,oBAAoB,CAAC;IACtC,kBAAkB,EAAE,EAAE,oBAAoB,EAAE,4BAA4B,EAAE;IAC1E,IAAI,EAAE,YAAY;IAClB,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;IACjC,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IAC9C,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,gBAAgB,EAAE,wBAAwB;QAC1C,uBAAuB,EAAE,+BAA+B;KACzD;IACD,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE;IAC3C,SAAS,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,UAAU;IACV,kBAAkB;CACnB,CAAC"}
@@ -1,106 +0,0 @@
1
- export declare const AUTH_0_AUTH_0_CALLBACK_TS_TEMPLATES: {
2
- auth0CallbackPage: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
3
- authHooksImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
4
- SessionData: {
5
- isTypeOnly: true;
6
- };
7
- useCurrentUser: {};
8
- useLogOut: {};
9
- useRequiredUserId: {};
10
- useSession: {};
11
- }>>;
12
- reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
13
- Alert: {};
14
- AlertIcon: {};
15
- BackButton: {};
16
- Button: {};
17
- ButtonGroup: {};
18
- Card: {};
19
- CheckedInput: {};
20
- ConfirmDialog: {};
21
- ErrorableLoader: {};
22
- ErrorDisplay: {};
23
- FormError: {};
24
- FormLabel: {};
25
- LinkButton: {};
26
- ListGroup: {};
27
- Modal: {};
28
- NotFoundCard: {};
29
- ReactDatePickerInput: {};
30
- ReactSelectInput: {};
31
- SelectInput: {};
32
- Sidebar: {};
33
- Spinner: {};
34
- Status: {
35
- isTypeOnly: true;
36
- };
37
- StatusType: {
38
- isTypeOnly: true;
39
- };
40
- Table: {};
41
- TextAreaInput: {};
42
- TextInput: {};
43
- Toast: {};
44
- useConfirmDialog: {};
45
- UseConfirmDialogRequestOptions: {
46
- isTypeOnly: true;
47
- };
48
- useConfirmDialogState: {};
49
- useStatus: {};
50
- useToast: {};
51
- }>>;
52
- reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
53
- formatError: {};
54
- logAndFormatError: {};
55
- logError: {};
56
- }>>;
57
- }>;
58
- signupPage: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
59
- reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
60
- Alert: {};
61
- AlertIcon: {};
62
- BackButton: {};
63
- Button: {};
64
- ButtonGroup: {};
65
- Card: {};
66
- CheckedInput: {};
67
- ConfirmDialog: {};
68
- ErrorableLoader: {};
69
- ErrorDisplay: {};
70
- FormError: {};
71
- FormLabel: {};
72
- LinkButton: {};
73
- ListGroup: {};
74
- Modal: {};
75
- NotFoundCard: {};
76
- ReactDatePickerInput: {};
77
- ReactSelectInput: {};
78
- SelectInput: {};
79
- Sidebar: {};
80
- Spinner: {};
81
- Status: {
82
- isTypeOnly: true;
83
- };
84
- StatusType: {
85
- isTypeOnly: true;
86
- };
87
- Table: {};
88
- TextAreaInput: {};
89
- TextInput: {};
90
- Toast: {};
91
- useConfirmDialog: {};
92
- UseConfirmDialogRequestOptions: {
93
- isTypeOnly: true;
94
- };
95
- useConfirmDialogState: {};
96
- useStatus: {};
97
- useToast: {};
98
- }>>;
99
- reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
100
- formatError: {};
101
- logAndFormatError: {};
102
- logError: {};
103
- }>>;
104
- }>;
105
- };
106
- //# sourceMappingURL=ts-templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-callback/generated/ts-templates.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-callback/generated/ts-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,kBAAkB,EAAE;QAClB,gBAAgB,EAAE,wBAAwB;QAC1C,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,qBAAqB;IAC3B,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE;IAC3C,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,oBAAoB,CAAC;IACtC,kBAAkB,EAAE;QAClB,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACnC,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,iBAAiB;IACjB,UAAU;CACX,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { AuthComponentImportsProvider } from '@baseplate-dev/react-generators';
2
- export declare function createAuth0ComponentsImports(importBase: string): AuthComponentImportsProvider;
3
- //# sourceMappingURL=ts-import-maps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-import-maps.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/ts-import-maps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAMpF,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,4BAA4B,CAQ9B"}
@@ -1,12 +0,0 @@
1
- import { createTsImportMap } from '@baseplate-dev/core-generators';
2
- import { authComponentsImportsSchema } from '@baseplate-dev/react-generators';
3
- import path from 'node:path/posix';
4
- export function createAuth0ComponentsImports(importBase) {
5
- if (!importBase.startsWith('@/')) {
6
- throw new Error('importBase must start with @/');
7
- }
8
- return createTsImportMap(authComponentsImportsSchema, {
9
- RequireAuth: path.join(importBase, 'index.js'),
10
- });
11
- }
12
- //# sourceMappingURL=ts-import-maps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-import-maps.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/ts-import-maps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,iBAAiB,CAAC,2BAA2B,EAAE;QACpD,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;KAC/C,CAAC,CAAC;AACL,CAAC"}
@@ -1,45 +0,0 @@
1
- export declare const AUTH_0_AUTH_0_COMPONENTS_TS_TEMPLATES: {
2
- requireAuth: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
3
- reactComponentsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
4
- Alert: {};
5
- AlertIcon: {};
6
- BackButton: {};
7
- Button: {};
8
- ButtonGroup: {};
9
- Card: {};
10
- CheckedInput: {};
11
- ConfirmDialog: {};
12
- ErrorableLoader: {};
13
- ErrorDisplay: {};
14
- FormError: {};
15
- FormLabel: {};
16
- LinkButton: {};
17
- ListGroup: {};
18
- Modal: {};
19
- NotFoundCard: {};
20
- ReactDatePickerInput: {};
21
- ReactSelectInput: {};
22
- SelectInput: {};
23
- Sidebar: {};
24
- Spinner: {};
25
- Status: {
26
- isTypeOnly: true;
27
- };
28
- StatusType: {
29
- isTypeOnly: true;
30
- };
31
- Table: {};
32
- TextAreaInput: {};
33
- TextInput: {};
34
- Toast: {};
35
- useConfirmDialog: {};
36
- UseConfirmDialogRequestOptions: {
37
- isTypeOnly: true;
38
- };
39
- useConfirmDialogState: {};
40
- useStatus: {};
41
- useToast: {};
42
- }>>;
43
- }>;
44
- };
45
- //# sourceMappingURL=ts-templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/ts-templates.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
- import { reactComponentsImportsProvider } from '@baseplate-dev/react-generators';
3
- const requireAuth = createTsTemplateFile({
4
- importMapProviders: {
5
- reactComponentsImports: reactComponentsImportsProvider,
6
- },
7
- name: 'require-auth',
8
- projectExports: { RequireAuth: { exportName: 'default' } },
9
- source: { path: 'RequireAuth.tsx' },
10
- variables: {},
11
- });
12
- export const AUTH_0_AUTH_0_COMPONENTS_TS_TEMPLATES = { requireAuth };
13
- //# sourceMappingURL=ts-templates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-components/generated/ts-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,MAAM,WAAW,GAAG,oBAAoB,CAAC;IACvC,kBAAkB,EAAE;QAClB,sBAAsB,EAAE,8BAA8B;KACvD;IACD,IAAI,EAAE,cAAc;IACpB,cAAc,EAAE,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE;IAC1D,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACnC,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qCAAqC,GAAG,EAAE,WAAW,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const AUTH_0_AUTH_0_HOOKS_TEXT_TEMPLATES: {
2
- useCurrentUserGql: import("@baseplate-dev/sync").TextTemplateFile<{
3
- TPL_USER_QUERY_NAME: {
4
- description: string;
5
- };
6
- }>;
7
- };
8
- //# sourceMappingURL=text-templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/text-templates.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC;;;;;;CAE9C,CAAC"}
@@ -1,12 +0,0 @@
1
- import { createTextTemplateFile } from '@baseplate-dev/sync';
2
- const useCurrentUserGql = createTextTemplateFile({
3
- name: 'use-current-user-gql',
4
- source: { path: 'useCurrentUser.gql' },
5
- variables: {
6
- TPL_USER_QUERY_NAME: { description: 'The name of the user query' },
7
- },
8
- });
9
- export const AUTH_0_AUTH_0_HOOKS_TEXT_TEMPLATES = {
10
- useCurrentUserGql,
11
- };
12
- //# sourceMappingURL=text-templates.js.map