@baseplate-dev/plugin-auth 1.0.6 → 1.0.8

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 (1216) hide show
  1. package/CHANGELOG.md +970 -0
  2. package/LICENSE +114 -123
  3. package/README.md +3 -3
  4. package/dist/auth/core/common.d.ts +2 -5
  5. package/dist/auth/core/common.js +15 -19
  6. package/dist/auth/core/components/auth-definition-editor.js +51 -30
  7. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts +12 -0
  8. package/dist/auth/core/components/role-editor-form/role-dialog.js +29 -0
  9. package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
  10. package/dist/auth/core/components/role-editor-form/role-editor-form.js +54 -0
  11. package/dist/auth/core/node.d.ts +3 -3
  12. package/dist/auth/core/node.js +29 -40
  13. package/dist/auth/core/schema/migrations.d.ts +3 -0
  14. package/dist/auth/core/schema/migrations.js +54 -0
  15. package/dist/auth/core/schema/plugin-definition.d.ts +11 -74
  16. package/dist/auth/core/schema/plugin-definition.js +9 -20
  17. package/dist/auth/core/schema/roles/constants.js +34 -0
  18. package/dist/auth/core/schema/roles/index.d.ts +3 -0
  19. package/dist/auth/core/schema/roles/index.js +3 -0
  20. package/dist/auth/core/schema/roles/schema.d.ts +62 -0
  21. package/dist/auth/core/schema/roles/schema.js +38 -0
  22. package/dist/auth/core/web.d.ts +3 -3
  23. package/dist/auth/core/web.js +34 -6
  24. package/dist/auth/index.d.ts +1 -1
  25. package/dist/auth/index.js +1 -1
  26. package/dist/auth/plugin.json +8 -0
  27. package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
  28. package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
  29. package/dist/auth/utils/index.d.ts +2 -0
  30. package/dist/auth/utils/index.js +2 -0
  31. package/dist/better-auth/admin/common.d.ts +5 -0
  32. package/dist/better-auth/admin/common.js +29 -0
  33. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +510 -0
  34. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +123 -0
  35. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +510 -0
  36. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
  37. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
  38. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
  39. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +260 -0
  40. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
  41. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +249 -0
  42. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
  43. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
  44. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
  45. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
  46. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
  47. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +162 -0
  48. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +509 -0
  49. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +114 -0
  50. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +510 -0
  51. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
  52. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
  53. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
  54. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +260 -0
  55. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
  56. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +495 -0
  57. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
  58. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
  59. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
  60. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
  61. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
  62. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
  63. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +244 -0
  64. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
  65. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
  66. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
  67. package/dist/better-auth/admin/node.d.ts +5 -0
  68. package/dist/better-auth/admin/node.js +57 -0
  69. package/dist/better-auth/admin/schema/manage-role-action.d.ts +12 -0
  70. package/dist/better-auth/admin/schema/manage-role-action.js +6 -0
  71. package/dist/better-auth/admin/schema/reset-password-action.d.ts +12 -0
  72. package/dist/better-auth/admin/schema/reset-password-action.js +6 -0
  73. package/dist/better-auth/admin/schema/roles-column.d.ts +9 -0
  74. package/dist/better-auth/admin/schema/roles-column.js +6 -0
  75. package/dist/better-auth/admin/web.d.ts +5 -0
  76. package/dist/better-auth/admin/web.js +39 -0
  77. package/dist/better-auth/constants/model-names.d.ts +8 -0
  78. package/dist/better-auth/constants/model-names.js +8 -0
  79. package/dist/better-auth/constants/packages.d.ts +4 -0
  80. package/dist/better-auth/constants/packages.js +4 -0
  81. package/dist/better-auth/core/common.d.ts +6 -0
  82. package/dist/better-auth/core/common.js +20 -0
  83. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts +5 -0
  84. package/dist/better-auth/core/components/better-auth-definition-editor.js +62 -0
  85. package/dist/better-auth/core/index.d.ts +2 -0
  86. package/dist/better-auth/core/index.js +2 -0
  87. package/dist/better-auth/core/node.d.ts +5 -0
  88. package/dist/better-auth/core/node.js +64 -0
  89. package/dist/better-auth/core/schema/models.d.ts +3 -0
  90. package/dist/better-auth/core/schema/models.js +293 -0
  91. package/dist/better-auth/core/schema/plugin-definition.d.ts +8 -0
  92. package/dist/better-auth/core/schema/plugin-definition.js +9 -0
  93. package/dist/better-auth/core/schema/schema-issue-checker.d.ts +3 -0
  94. package/dist/better-auth/core/schema/schema-issue-checker.js +21 -0
  95. package/dist/better-auth/core/web.d.ts +6 -0
  96. package/dist/better-auth/core/web.js +26 -0
  97. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +73 -0
  98. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js +56 -0
  99. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +111 -0
  100. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js +11 -0
  101. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts +13 -0
  102. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js +25 -0
  103. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +56 -0
  104. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js +57 -0
  105. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +21 -0
  106. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +30 -0
  107. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +47 -0
  108. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js +33 -0
  109. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts +4 -0
  110. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js +3 -0
  111. package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/schema/admin-auth.mutations.ts +48 -0
  112. package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/services/admin-auth.service.ts +106 -0
  113. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +44 -0
  114. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js +48 -0
  115. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +100 -0
  116. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js +9 -0
  117. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts +14 -0
  118. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js +26 -0
  119. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +42 -0
  120. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js +59 -0
  121. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +63 -0
  122. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js +42 -0
  123. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts +2 -0
  124. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js +2 -0
  125. package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  126. package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  127. package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  128. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +151 -0
  129. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +109 -0
  130. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +234 -0
  131. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js +11 -0
  132. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts +16 -0
  133. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js +28 -0
  134. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +116 -0
  135. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +91 -0
  136. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +48 -0
  137. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +40 -0
  138. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +110 -0
  139. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +83 -0
  140. package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts +4 -0
  141. package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
  142. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +34 -0
  143. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/schema/user-session.queries.ts +22 -0
  144. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +107 -0
  145. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +84 -0
  146. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/utils/headers.utils.ts +21 -0
  147. package/dist/better-auth/generators/fastify/index.d.ts +5 -0
  148. package/dist/better-auth/generators/fastify/index.js +5 -0
  149. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts +66 -0
  150. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js +9 -0
  151. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts +12 -0
  152. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js +24 -0
  153. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts +38 -0
  154. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js +43 -0
  155. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts +27 -0
  156. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js +18 -0
  157. package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts +2 -0
  158. package/dist/better-auth/generators/fastify/seed-initial-user/index.js +2 -0
  159. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts +49 -0
  160. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +64 -0
  161. package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +64 -0
  162. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +43 -0
  163. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js +37 -0
  164. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +72 -0
  165. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js +11 -0
  166. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +14 -0
  167. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +26 -0
  168. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts +27 -0
  169. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js +43 -0
  170. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +18 -0
  171. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +27 -0
  172. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +51 -0
  173. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +48 -0
  174. package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts +2 -0
  175. package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
  176. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +16 -0
  177. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +29 -0
  178. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +260 -0
  179. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js +26 -0
  180. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +1492 -0
  181. package/dist/better-auth/generators/react/better-auth-pages/generated/index.js +9 -0
  182. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +16 -0
  183. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +28 -0
  184. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +261 -0
  185. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js +44 -0
  186. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +2457 -0
  187. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +83 -0
  188. package/dist/better-auth/generators/react/better-auth-pages/index.d.ts +2 -0
  189. package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
  190. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +133 -0
  191. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/login.tsx +152 -0
  192. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/register.tsx +164 -0
  193. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/reset-password.tsx +177 -0
  194. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/verify-email.tsx +109 -0
  195. package/dist/better-auth/generators/react/index.d.ts +4 -0
  196. package/dist/better-auth/generators/react/index.js +4 -0
  197. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +537 -0
  198. package/dist/better-auth/generators/react/react-better-auth/generated/index.js +11 -0
  199. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts +13 -0
  200. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js +25 -0
  201. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +271 -0
  202. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js +51 -0
  203. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +21 -0
  204. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +30 -0
  205. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +258 -0
  206. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js +33 -0
  207. package/dist/better-auth/generators/react/react-better-auth/index.d.ts +4 -0
  208. package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
  209. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +291 -0
  210. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js +74 -0
  211. package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +55 -0
  212. package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +13 -0
  213. package/dist/better-auth/index.d.ts +3 -0
  214. package/dist/better-auth/index.js +2 -0
  215. package/dist/better-auth/plugin.json +9 -0
  216. package/dist/better-auth/static/icon.svg +10 -0
  217. package/dist/common/components/auth-config-tabs.d.ts +2 -0
  218. package/dist/common/components/auth-config-tabs.js +21 -0
  219. package/dist/index.d.ts +2 -1
  220. package/dist/index.js +1 -1
  221. package/dist/local-auth/admin/common.d.ts +5 -0
  222. package/dist/local-auth/admin/common.js +29 -0
  223. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +510 -0
  224. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +127 -0
  225. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +510 -0
  226. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
  227. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
  228. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
  229. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +260 -0
  230. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
  231. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +249 -0
  232. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
  233. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
  234. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
  235. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
  236. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
  237. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +162 -0
  238. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +509 -0
  239. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +119 -0
  240. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +510 -0
  241. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
  242. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
  243. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
  244. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +260 -0
  245. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
  246. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +495 -0
  247. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
  248. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
  249. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
  250. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
  251. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
  252. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
  253. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +244 -0
  254. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
  255. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
  256. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
  257. package/dist/local-auth/admin/node.d.ts +5 -0
  258. package/dist/local-auth/admin/node.js +57 -0
  259. package/dist/local-auth/admin/schema/manage-role-action.d.ts +12 -0
  260. package/dist/local-auth/admin/schema/manage-role-action.js +6 -0
  261. package/dist/local-auth/admin/schema/reset-password-action.d.ts +12 -0
  262. package/dist/local-auth/admin/schema/reset-password-action.js +6 -0
  263. package/dist/local-auth/admin/schema/roles-column.d.ts +9 -0
  264. package/dist/local-auth/admin/schema/roles-column.js +6 -0
  265. package/dist/local-auth/admin/web.d.ts +5 -0
  266. package/dist/local-auth/admin/web.js +39 -0
  267. package/dist/local-auth/constants/model-names.d.ts +23 -0
  268. package/dist/local-auth/constants/model-names.js +23 -0
  269. package/dist/local-auth/core/common.d.ts +6 -0
  270. package/dist/local-auth/core/common.js +20 -0
  271. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
  272. package/dist/local-auth/core/components/local-auth-definition-editor.js +63 -0
  273. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +13 -0
  274. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js +40 -0
  275. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js +20 -0
  276. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.ts +18 -0
  277. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +122 -0
  278. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +82 -0
  279. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +327 -0
  280. package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
  281. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +18 -0
  282. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +30 -0
  283. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +95 -0
  284. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +87 -0
  285. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +45 -0
  286. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +46 -0
  287. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +372 -0
  288. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +140 -0
  289. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +17 -0
  290. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +18 -0
  291. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +21 -0
  292. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
  293. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
  294. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
  295. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
  296. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +39 -0
  297. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +55 -0
  298. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +76 -0
  299. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +95 -0
  300. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
  301. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +87 -0
  302. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +144 -0
  303. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +38 -0
  304. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +165 -0
  305. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +244 -0
  306. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +71 -0
  307. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +226 -0
  308. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +358 -0
  309. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +44 -0
  310. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
  311. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +100 -0
  312. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
  313. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
  314. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
  315. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +42 -0
  316. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
  317. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +63 -0
  318. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
  319. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
  320. package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
  321. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
  322. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
  323. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  324. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
  325. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
  326. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  327. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
  328. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
  329. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  330. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +57 -0
  331. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +32 -0
  332. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +93 -0
  333. package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
  334. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +14 -0
  335. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +26 -0
  336. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +35 -0
  337. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +45 -0
  338. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +29 -0
  339. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +37 -0
  340. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +71 -0
  341. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +50 -0
  342. package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
  343. package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
  344. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +3 -0
  345. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +30 -0
  346. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +33 -0
  347. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
  348. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
  349. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
  350. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +15 -0
  351. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +16 -0
  352. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +179 -0
  353. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +115 -0
  354. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +458 -0
  355. package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
  356. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +25 -0
  357. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +37 -0
  358. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +160 -0
  359. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +120 -0
  360. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +36 -0
  361. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +40 -0
  362. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +402 -0
  363. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +207 -0
  364. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +2 -0
  365. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +4 -0
  366. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +7 -0
  367. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.d.ts +6 -0
  368. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.js +18 -0
  369. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.ts +22 -0
  370. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
  371. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
  372. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
  373. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts +2 -0
  374. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js +23 -0
  375. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.ts +26 -0
  376. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +19 -0
  377. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +25 -0
  378. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +17 -0
  379. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +24 -0
  380. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +36 -0
  381. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +43 -0
  382. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +40 -0
  383. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +106 -0
  384. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +146 -0
  385. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts +15 -0
  386. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +40 -0
  387. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +54 -0
  388. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +42 -0
  389. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +191 -0
  390. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +262 -0
  391. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +38 -0
  392. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +42 -0
  393. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +279 -0
  394. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +65 -0
  395. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1575 -0
  396. package/dist/local-auth/core/generators/auth-routes/generated/index.js +11 -0
  397. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +18 -0
  398. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +28 -0
  399. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +277 -0
  400. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +62 -0
  401. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
  402. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
  403. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +2323 -0
  404. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +120 -0
  405. package/dist/local-auth/core/generators/auth-routes/index.d.ts +4 -0
  406. package/dist/local-auth/core/generators/auth-routes/index.js +3 -0
  407. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
  408. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
  409. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
  410. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
  411. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
  412. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
  413. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +7 -0
  414. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +100 -0
  415. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +187 -0
  416. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +7 -0
  417. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +75 -0
  418. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +149 -0
  419. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
  420. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +153 -0
  421. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +292 -0
  422. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
  423. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
  424. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
  425. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
  426. package/dist/local-auth/core/generators/index.d.ts +10 -0
  427. package/dist/local-auth/core/generators/index.js +10 -0
  428. package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts +9 -0
  429. package/dist/local-auth/core/generators/react-auth/react-auth.generator.js +31 -0
  430. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +568 -0
  431. package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
  432. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +13 -0
  433. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +25 -0
  434. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +282 -0
  435. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +51 -0
  436. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +21 -0
  437. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
  438. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +547 -0
  439. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +35 -0
  440. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +301 -0
  441. package/dist/local-auth/core/generators/react-session/react-session.generator.js +48 -0
  442. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +72 -0
  443. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +99 -0
  444. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +58 -0
  445. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +103 -0
  446. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +122 -0
  447. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +90 -0
  448. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +9 -0
  449. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
  450. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
  451. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +50 -0
  452. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +46 -0
  453. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +39 -0
  454. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +20 -0
  455. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +2 -0
  456. package/dist/local-auth/core/generators/seed-initial-user/index.js +2 -0
  457. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +58 -0
  458. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +61 -0
  459. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
  460. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +33 -0
  461. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +45 -0
  462. package/dist/local-auth/core/node.d.ts +5 -0
  463. package/dist/local-auth/core/node.js +76 -0
  464. package/dist/local-auth/core/schema/models.d.ts +3 -0
  465. package/dist/local-auth/core/schema/models.js +281 -0
  466. package/dist/local-auth/core/schema/plugin-definition.d.ts +9 -0
  467. package/dist/local-auth/core/schema/plugin-definition.js +10 -0
  468. package/dist/local-auth/core/schema/schema-issue-checker.d.ts +3 -0
  469. package/dist/local-auth/core/schema/schema-issue-checker.js +21 -0
  470. package/dist/local-auth/core/web.d.ts +6 -0
  471. package/dist/local-auth/core/web.js +26 -0
  472. package/dist/local-auth/index.d.ts +2 -0
  473. package/dist/local-auth/index.js +2 -0
  474. package/dist/local-auth/plugin.json +14 -0
  475. package/dist/local-auth/static/icon.svg +1 -0
  476. package/dist/placeholder-auth/constants/model-names.d.ts +4 -0
  477. package/dist/placeholder-auth/constants/model-names.js +4 -0
  478. package/dist/placeholder-auth/core/common.d.ts +2 -5
  479. package/dist/placeholder-auth/core/common.js +11 -20
  480. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +21 -29
  481. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +3 -12
  482. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
  483. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
  484. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
  485. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
  486. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +3 -1
  487. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +1 -1
  488. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
  489. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +7 -32
  490. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +4 -6
  491. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
  492. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +6 -2
  493. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +2 -0
  494. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -2
  495. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +8 -5
  496. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +2 -0
  497. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +1 -1
  498. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +3 -1
  499. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -1
  500. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +64 -0
  501. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.js +44 -0
  502. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +5 -21
  503. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +17 -26
  504. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +21 -31
  505. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts +1 -1
  506. package/dist/placeholder-auth/core/node.d.ts +3 -3
  507. package/dist/placeholder-auth/core/node.js +11 -17
  508. package/dist/placeholder-auth/core/schema/models.d.ts +2 -5
  509. package/dist/placeholder-auth/core/schema/models.js +46 -28
  510. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +2 -79
  511. package/dist/placeholder-auth/core/schema/plugin-definition.js +2 -15
  512. package/dist/placeholder-auth/core/web.d.ts +3 -3
  513. package/dist/placeholder-auth/core/web.js +16 -6
  514. package/dist/placeholder-auth/plugin.json +10 -0
  515. package/dist/web/assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DdyPR8Y-.js +242 -0
  516. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js +384 -0
  517. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js +125 -0
  518. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js +80678 -0
  519. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js +7380 -0
  520. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js +13567 -0
  521. package/dist/web/assets/arduino-BP2nYunF.js +21 -0
  522. package/dist/web/assets/auth-8qJtXAgU.js +1 -0
  523. package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
  524. package/dist/web/assets/basic-3mvohyEL.js +28 -0
  525. package/dist/web/assets/c-C7Ey31hW.js +74 -0
  526. package/dist/web/assets/clike-D9YNFwtw.js +41 -0
  527. package/dist/web/assets/common-23-wvKrM.js +39 -0
  528. package/dist/web/assets/common-B-NI9TR-.js +37 -0
  529. package/dist/web/assets/common-BBriDRRy.js +63 -0
  530. package/dist/web/assets/common-BvU-7KsV.js +39 -0
  531. package/dist/web/assets/common-DBBUvtGu.js +37 -0
  532. package/dist/web/assets/common-eFh2vwGb.js +18 -0
  533. package/dist/web/assets/cpp-_RjA_yNA.js +82 -0
  534. package/dist/web/assets/csharp-0LZzOc6Q.js +301 -0
  535. package/dist/web/assets/css-D7TbgetL.js +70 -0
  536. package/dist/web/assets/diff-CtSa_15w.js +54 -0
  537. package/dist/web/assets/dist-BjxypexQ.js +18953 -0
  538. package/dist/web/assets/dist-SBfmsOB2.js +3576 -0
  539. package/dist/web/assets/get-auth-plugin-definition-x8oAsN1R.js +14 -0
  540. package/dist/web/assets/go-CzER04EZ.js +36 -0
  541. package/dist/web/assets/hostInit-oh7k6PLP.js +99 -0
  542. package/dist/web/assets/index-D-gGyBWJ.js +2 -0
  543. package/dist/web/assets/ini-CU-wHLTy.js +51 -0
  544. package/dist/web/assets/java-HAvRESj1.js +116 -0
  545. package/dist/web/assets/javascript-BVAr0eZH.js +124 -0
  546. package/dist/web/assets/json-DN8T4yFI.js +38 -0
  547. package/dist/web/assets/kotlin-DkCMjTKK.js +83 -0
  548. package/dist/web/assets/less-ZXX1tgaG.js +42 -0
  549. package/dist/web/assets/lua-D9bD4wrb.js +28 -0
  550. package/dist/web/assets/makefile-CKoRpler.js +40 -0
  551. package/dist/web/assets/markdown-_2_uVr2L.js +278 -0
  552. package/dist/web/assets/markup-BVZ8HhdW.js +176 -0
  553. package/dist/web/assets/markup-templating-BDIRuVJH.js +94 -0
  554. package/dist/web/assets/mf-entry-bootstrap-0-f953ebce.js +35 -0
  555. package/dist/web/assets/model-names-BluImOzu.js +27 -0
  556. package/dist/web/assets/model-names-CUS5rSei.js +12 -0
  557. package/dist/web/assets/model-utils-dNFTOjqi.js +1599 -0
  558. package/dist/web/assets/models-BpslIbU7.js +304 -0
  559. package/dist/web/assets/models-CKab4MTC.js +285 -0
  560. package/dist/web/assets/objectivec-DPgB68It.js +25 -0
  561. package/dist/web/assets/perl-Cul_ma_h.js +92 -0
  562. package/dist/web/assets/php-JTON0zp9.js +298 -0
  563. package/dist/web/assets/plugin-definition-8Exesd6T.js +78 -0
  564. package/dist/web/assets/plugin-definition-ChBrbazJ.js +11 -0
  565. package/dist/web/assets/python-CURlmZ7M.js +73 -0
  566. package/dist/web/assets/r-8lr7pbGm.js +30 -0
  567. package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
  568. package/dist/web/assets/rolldown-runtime-FZ4Itg2g.js +42 -0
  569. package/dist/web/assets/ruby-BoFHz67P.js +175 -0
  570. package/dist/web/assets/rust-CpZXpaj0.js +107 -0
  571. package/dist/web/assets/sass-DG0YAnL7.js +65 -0
  572. package/dist/web/assets/scss-BDRIqhak.js +70 -0
  573. package/dist/web/assets/sql-C-bL8_gT.js +40 -0
  574. package/dist/web/assets/styles-Cc26Bbxc.css +120 -0
  575. package/dist/web/assets/styles-Cuq4wgvD.js +176 -0
  576. package/dist/web/assets/swift-rQ52kfab.js +107 -0
  577. package/dist/web/assets/typescript-CDkIWcT8.js +57 -0
  578. package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
  579. package/dist/web/assets/virtualExposes-BwIds34r.js +2 -0
  580. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-RJNeuwba.js +259 -0
  581. package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js +129 -0
  582. package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js +203 -0
  583. package/dist/web/assets/vite-preload-helper-iIio8xkS.js +67 -0
  584. package/dist/web/assets/web-BZd3bM0n.js +410 -0
  585. package/dist/web/assets/web-BgWG7dYl.js +123 -0
  586. package/dist/web/assets/web-CXHw8SK7.js +118 -0
  587. package/dist/web/assets/web-CnB-sqCR.js +357 -0
  588. package/dist/web/assets/web-DHv2aVpi.js +106 -0
  589. package/dist/web/assets/web-DNrWXjpS.js +46 -0
  590. package/dist/web/assets/web-D_H-MoGI.js +46 -0
  591. package/dist/web/assets/workerBundle-GFUata9j.js +10 -0
  592. package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
  593. package/dist/web/index.html +2 -2
  594. package/dist/web/remoteEntry.js +2 -0
  595. package/dist/web/remoteEntry.ssr.js +43 -0
  596. package/package.json +53 -47
  597. package/dist/auth/core/common.d.ts.map +0 -1
  598. package/dist/auth/core/common.js.map +0 -1
  599. package/dist/auth/core/components/auth-definition-editor.d.ts.map +0 -1
  600. package/dist/auth/core/components/auth-definition-editor.js.map +0 -1
  601. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -28
  602. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
  603. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js +0 -43
  604. package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
  605. package/dist/auth/core/generators/auth-apollo/index.d.ts.map +0 -1
  606. package/dist/auth/core/generators/auth-apollo/index.js.map +0 -1
  607. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
  608. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js +0 -15
  609. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
  610. package/dist/auth/core/generators/auth-apollo/templates/session-error-link.ts +0 -16
  611. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +0 -73
  612. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
  613. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js +0 -40
  614. package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
  615. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts +0 -124
  616. package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
  617. package/dist/auth/core/generators/auth-email-password/generated/index.js +0 -11
  618. package/dist/auth/core/generators/auth-email-password/generated/index.js.map +0 -1
  619. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -14
  620. package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
  621. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js +0 -26
  622. package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
  623. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts +0 -58
  624. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
  625. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js +0 -55
  626. package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
  627. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +0 -25
  628. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
  629. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js +0 -32
  630. package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
  631. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts +0 -105
  632. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
  633. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js +0 -58
  634. package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
  635. package/dist/auth/core/generators/auth-email-password/index.d.ts.map +0 -1
  636. package/dist/auth/core/generators/auth-email-password/index.js.map +0 -1
  637. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +0 -2
  638. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
  639. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +0 -3
  640. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
  641. package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +0 -3
  642. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
  643. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +0 -33
  644. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
  645. package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +0 -44
  646. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +0 -21
  647. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
  648. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +0 -74
  649. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
  650. package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +0 -121
  651. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +0 -61
  652. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
  653. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -33
  654. package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
  655. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts +0 -127
  656. package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
  657. package/dist/auth/core/generators/auth-hooks/generated/index.js +0 -11
  658. package/dist/auth/core/generators/auth-hooks/generated/index.js.map +0 -1
  659. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -17
  660. package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
  661. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js +0 -27
  662. package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
  663. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts +0 -47
  664. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
  665. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js +0 -50
  666. package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
  667. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -16
  668. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  669. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -27
  670. package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
  671. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts +0 -131
  672. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
  673. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js +0 -83
  674. package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
  675. package/dist/auth/core/generators/auth-hooks/index.d.ts +0 -2
  676. package/dist/auth/core/generators/auth-hooks/index.d.ts.map +0 -1
  677. package/dist/auth/core/generators/auth-hooks/index.js +0 -2
  678. package/dist/auth/core/generators/auth-hooks/index.js.map +0 -1
  679. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
  680. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  681. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  682. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
  683. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  684. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
  685. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +0 -2
  686. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
  687. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
  688. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +0 -27
  689. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
  690. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +0 -29
  691. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +0 -8
  692. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
  693. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -12
  694. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
  695. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +0 -16
  696. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
  697. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +0 -15
  698. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
  699. package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +0 -16
  700. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts +0 -94
  701. package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
  702. package/dist/auth/core/generators/auth-module/auth-module.generator.js +0 -70
  703. package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
  704. package/dist/auth/core/generators/auth-module/generated/index.d.ts +0 -182
  705. package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
  706. package/dist/auth/core/generators/auth-module/generated/index.js +0 -11
  707. package/dist/auth/core/generators/auth-module/generated/index.js.map +0 -1
  708. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts +0 -19
  709. package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
  710. package/dist/auth/core/generators/auth-module/generated/template-paths.js +0 -29
  711. package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
  712. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts +0 -80
  713. package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
  714. package/dist/auth/core/generators/auth-module/generated/template-renderers.js +0 -79
  715. package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
  716. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts +0 -22
  717. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
  718. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js +0 -31
  719. package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
  720. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts +0 -134
  721. package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
  722. package/dist/auth/core/generators/auth-module/generated/typed-templates.js +0 -113
  723. package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
  724. package/dist/auth/core/generators/auth-module/index.d.ts.map +0 -1
  725. package/dist/auth/core/generators/auth-module/index.js.map +0 -1
  726. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
  727. package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
  728. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
  729. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +0 -17
  730. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
  731. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +0 -23
  732. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
  733. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +0 -18
  734. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
  735. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +0 -22
  736. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
  737. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +0 -19
  738. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
  739. package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +0 -23
  740. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -43
  741. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
  742. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -180
  743. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
  744. package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -250
  745. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
  746. package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
  747. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
  748. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js +0 -38
  749. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
  750. package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +0 -42
  751. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
  752. package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
  753. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts +0 -176
  754. package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
  755. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js +0 -38
  756. package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
  757. package/dist/auth/core/generators/auth-routes/generated/index.d.ts +0 -495
  758. package/dist/auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
  759. package/dist/auth/core/generators/auth-routes/generated/index.js +0 -9
  760. package/dist/auth/core/generators/auth-routes/generated/index.js.map +0 -1
  761. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -15
  762. package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
  763. package/dist/auth/core/generators/auth-routes/generated/template-paths.js +0 -25
  764. package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
  765. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts +0 -176
  766. package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
  767. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js +0 -55
  768. package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
  769. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts +0 -638
  770. package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
  771. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js +0 -57
  772. package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
  773. package/dist/auth/core/generators/auth-routes/index.d.ts +0 -2
  774. package/dist/auth/core/generators/auth-routes/index.d.ts.map +0 -1
  775. package/dist/auth/core/generators/auth-routes/index.js +0 -2
  776. package/dist/auth/core/generators/auth-routes/index.js.map +0 -1
  777. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +0 -2
  778. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
  779. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js +0 -85
  780. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
  781. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +0 -161
  782. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -15
  783. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +0 -2
  784. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
  785. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js +0 -77
  786. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
  787. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +0 -148
  788. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +0 -2
  789. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
  790. package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
  791. package/dist/auth/core/generators/index.d.ts +0 -8
  792. package/dist/auth/core/generators/index.d.ts.map +0 -1
  793. package/dist/auth/core/generators/index.js +0 -8
  794. package/dist/auth/core/generators/index.js.map +0 -1
  795. package/dist/auth/core/generators/react-auth/index.d.ts.map +0 -1
  796. package/dist/auth/core/generators/react-auth/index.js.map +0 -1
  797. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts +0 -9
  798. package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
  799. package/dist/auth/core/generators/react-auth/react-auth.generator.js +0 -31
  800. package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
  801. package/dist/auth/core/generators/react-session/generated/index.d.ts +0 -74
  802. package/dist/auth/core/generators/react-session/generated/index.d.ts.map +0 -1
  803. package/dist/auth/core/generators/react-session/generated/index.js +0 -11
  804. package/dist/auth/core/generators/react-session/generated/index.js.map +0 -1
  805. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +0 -16
  806. package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
  807. package/dist/auth/core/generators/react-session/generated/template-paths.js +0 -26
  808. package/dist/auth/core/generators/react-session/generated/template-paths.js.map +0 -1
  809. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +0 -27
  810. package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
  811. package/dist/auth/core/generators/react-session/generated/template-renderers.js +0 -49
  812. package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
  813. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +0 -64
  814. package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
  815. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +0 -42
  816. package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
  817. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +0 -46
  818. package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
  819. package/dist/auth/core/generators/react-session/generated/typed-templates.js +0 -82
  820. package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
  821. package/dist/auth/core/generators/react-session/index.d.ts.map +0 -1
  822. package/dist/auth/core/generators/react-session/index.js.map +0 -1
  823. package/dist/auth/core/generators/react-session/react-session.generator.d.ts +0 -58
  824. package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
  825. package/dist/auth/core/generators/react-session/react-session.generator.js +0 -54
  826. package/dist/auth/core/generators/react-session/react-session.generator.js.map +0 -1
  827. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +0 -7
  828. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +0 -1
  829. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.gql +0 -6
  830. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +0 -25
  831. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +0 -1
  832. package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +0 -28
  833. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
  834. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +0 -18
  835. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
  836. package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +0 -45
  837. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +0 -12
  838. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +0 -1
  839. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +0 -15
  840. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +0 -1
  841. package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +0 -30
  842. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +0 -79
  843. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
  844. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js +0 -133
  845. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
  846. package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.ts +0 -153
  847. package/dist/auth/core/index.d.ts.map +0 -1
  848. package/dist/auth/core/index.js.map +0 -1
  849. package/dist/auth/core/node.d.ts.map +0 -1
  850. package/dist/auth/core/node.js.map +0 -1
  851. package/dist/auth/core/schema/models.d.ts +0 -9
  852. package/dist/auth/core/schema/models.d.ts.map +0 -1
  853. package/dist/auth/core/schema/models.js +0 -203
  854. package/dist/auth/core/schema/models.js.map +0 -1
  855. package/dist/auth/core/schema/plugin-definition.d.ts.map +0 -1
  856. package/dist/auth/core/schema/plugin-definition.js.map +0 -1
  857. package/dist/auth/core/web.d.ts.map +0 -1
  858. package/dist/auth/core/web.js.map +0 -1
  859. package/dist/auth/index.d.ts.map +0 -1
  860. package/dist/auth/index.js.map +0 -1
  861. package/dist/auth/metadata.json +0 -8
  862. package/dist/auth0/constants/packages.d.ts +0 -6
  863. package/dist/auth0/constants/packages.d.ts.map +0 -1
  864. package/dist/auth0/constants/packages.js +0 -6
  865. package/dist/auth0/constants/packages.js.map +0 -1
  866. package/dist/auth0/core/common.d.ts +0 -7
  867. package/dist/auth0/core/common.d.ts.map +0 -1
  868. package/dist/auth0/core/common.js +0 -28
  869. package/dist/auth0/core/common.js.map +0 -1
  870. package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
  871. package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
  872. package/dist/auth0/core/components/auth-definition-editor.js +0 -61
  873. package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
  874. package/dist/auth0/core/node.d.ts +0 -5
  875. package/dist/auth0/core/node.d.ts.map +0 -1
  876. package/dist/auth0/core/node.js +0 -49
  877. package/dist/auth0/core/node.js.map +0 -1
  878. package/dist/auth0/core/schema/migrations.d.ts +0 -3
  879. package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
  880. package/dist/auth0/core/schema/migrations.js +0 -19
  881. package/dist/auth0/core/schema/migrations.js.map +0 -1
  882. package/dist/auth0/core/schema/models.d.ts +0 -6
  883. package/dist/auth0/core/schema/models.d.ts.map +0 -1
  884. package/dist/auth0/core/schema/models.js +0 -39
  885. package/dist/auth0/core/schema/models.js.map +0 -1
  886. package/dist/auth0/core/schema/plugin-definition.d.ts +0 -83
  887. package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
  888. package/dist/auth0/core/schema/plugin-definition.js +0 -17
  889. package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
  890. package/dist/auth0/core/web.d.ts +0 -6
  891. package/dist/auth0/core/web.d.ts.map +0 -1
  892. package/dist/auth0/core/web.js +0 -14
  893. package/dist/auth0/core/web.js.map +0 -1
  894. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +0 -75
  895. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
  896. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -120
  897. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
  898. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +0 -105
  899. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +0 -1
  900. package/dist/auth0/generators/fastify/auth0-module/generated/index.js +0 -11
  901. package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +0 -1
  902. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +0 -13
  903. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +0 -1
  904. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +0 -23
  905. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +0 -1
  906. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +0 -55
  907. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +0 -1
  908. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +0 -52
  909. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +0 -1
  910. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +0 -10
  911. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +0 -1
  912. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +0 -23
  913. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +0 -1
  914. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +0 -43
  915. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +0 -1
  916. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +0 -28
  917. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +0 -1
  918. package/dist/auth0/generators/fastify/auth0-module/index.d.ts +0 -2
  919. package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +0 -1
  920. package/dist/auth0/generators/fastify/auth0-module/index.js +0 -2
  921. package/dist/auth0/generators/fastify/auth0-module/index.js.map +0 -1
  922. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/management.ts +0 -22
  923. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/user-session.service.ts +0 -101
  924. package/dist/auth0/generators/fastify/index.d.ts +0 -2
  925. package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
  926. package/dist/auth0/generators/fastify/index.js +0 -2
  927. package/dist/auth0/generators/fastify/index.js.map +0 -1
  928. package/dist/auth0/generators/index.d.ts.map +0 -1
  929. package/dist/auth0/generators/index.js.map +0 -1
  930. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
  931. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
  932. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
  933. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
  934. package/dist/auth0/generators/react/auth0-apollo/index.d.ts +0 -2
  935. package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +0 -1
  936. package/dist/auth0/generators/react/auth0-apollo/index.js +0 -2
  937. package/dist/auth0/generators/react/auth0-apollo/index.js.map +0 -1
  938. package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
  939. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -40
  940. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
  941. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +0 -40
  942. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
  943. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -72
  944. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +0 -1
  945. package/dist/auth0/generators/react/auth0-hooks/generated/index.js +0 -11
  946. package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +0 -1
  947. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -16
  948. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +0 -1
  949. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -26
  950. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +0 -1
  951. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -29
  952. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +0 -1
  953. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +0 -47
  954. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +0 -1
  955. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -16
  956. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +0 -1
  957. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -27
  958. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +0 -1
  959. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -52
  960. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +0 -1
  961. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +0 -69
  962. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +0 -1
  963. package/dist/auth0/generators/react/auth0-hooks/index.d.ts +0 -2
  964. package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +0 -1
  965. package/dist/auth0/generators/react/auth0-hooks/index.js +0 -2
  966. package/dist/auth0/generators/react/auth0-hooks/index.js.map +0 -1
  967. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
  968. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -29
  969. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-log-out.ts +0 -14
  970. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -23
  971. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts +0 -143
  972. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +0 -1
  973. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js +0 -26
  974. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +0 -1
  975. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts +0 -278
  976. package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts.map +0 -1
  977. package/dist/auth0/generators/react/auth0-pages/generated/index.js +0 -9
  978. package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +0 -1
  979. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +0 -12
  980. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +0 -1
  981. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +0 -20
  982. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +0 -1
  983. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts +0 -144
  984. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +0 -1
  985. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +0 -37
  986. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +0 -1
  987. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +0 -263
  988. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +0 -1
  989. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js +0 -18
  990. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +0 -1
  991. package/dist/auth0/generators/react/auth0-pages/index.d.ts +0 -2
  992. package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +0 -1
  993. package/dist/auth0/generators/react/auth0-pages/index.js +0 -2
  994. package/dist/auth0/generators/react/auth0-pages/index.js.map +0 -1
  995. package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +0 -31
  996. package/dist/auth0/generators/react/index.d.ts +0 -5
  997. package/dist/auth0/generators/react/index.d.ts.map +0 -1
  998. package/dist/auth0/generators/react/index.js +0 -5
  999. package/dist/auth0/generators/react/index.js.map +0 -1
  1000. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts +0 -286
  1001. package/dist/auth0/generators/react/react-auth0/generated/index.d.ts.map +0 -1
  1002. package/dist/auth0/generators/react/react-auth0/generated/index.js +0 -9
  1003. package/dist/auth0/generators/react/react-auth0/generated/index.js.map +0 -1
  1004. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +0 -12
  1005. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +0 -1
  1006. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +0 -22
  1007. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +0 -1
  1008. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts +0 -149
  1009. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +0 -1
  1010. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +0 -39
  1011. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +0 -1
  1012. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts +0 -136
  1013. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +0 -1
  1014. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +0 -17
  1015. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +0 -1
  1016. package/dist/auth0/generators/react/react-auth0/index.d.ts +0 -2
  1017. package/dist/auth0/generators/react/react-auth0/index.d.ts.map +0 -1
  1018. package/dist/auth0/generators/react/react-auth0/index.js +0 -2
  1019. package/dist/auth0/generators/react/react-auth0/index.js.map +0 -1
  1020. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +0 -178
  1021. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
  1022. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -107
  1023. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
  1024. package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +0 -78
  1025. package/dist/auth0/metadata.json +0 -8
  1026. package/dist/auth0/static/icon.svg +0 -7
  1027. package/dist/common/compiler/generator-creators.d.ts +0 -18
  1028. package/dist/common/compiler/generator-creators.d.ts.map +0 -1
  1029. package/dist/common/compiler/generator-creators.js +0 -34
  1030. package/dist/common/compiler/generator-creators.js.map +0 -1
  1031. package/dist/common/compiler/index.d.ts +0 -2
  1032. package/dist/common/compiler/index.d.ts.map +0 -1
  1033. package/dist/common/compiler/index.js +0 -2
  1034. package/dist/common/compiler/index.js.map +0 -1
  1035. package/dist/common/index.d.ts +0 -3
  1036. package/dist/common/index.d.ts.map +0 -1
  1037. package/dist/common/index.js +0 -3
  1038. package/dist/common/index.js.map +0 -1
  1039. package/dist/common/roles/components/index.d.ts +0 -2
  1040. package/dist/common/roles/components/index.d.ts.map +0 -1
  1041. package/dist/common/roles/components/index.js +0 -2
  1042. package/dist/common/roles/components/index.js.map +0 -1
  1043. package/dist/common/roles/components/role-editor-form/role-dialog.d.ts +0 -14
  1044. package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +0 -1
  1045. package/dist/common/roles/components/role-editor-form/role-dialog.js +0 -29
  1046. package/dist/common/roles/components/role-editor-form/role-dialog.js.map +0 -1
  1047. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +0 -10
  1048. package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +0 -1
  1049. package/dist/common/roles/components/role-editor-form/role-editor-form.js +0 -49
  1050. package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +0 -1
  1051. package/dist/common/roles/constants.d.ts.map +0 -1
  1052. package/dist/common/roles/constants.js +0 -25
  1053. package/dist/common/roles/constants.js.map +0 -1
  1054. package/dist/common/roles/index.d.ts +0 -4
  1055. package/dist/common/roles/index.d.ts.map +0 -1
  1056. package/dist/common/roles/index.js +0 -4
  1057. package/dist/common/roles/index.js.map +0 -1
  1058. package/dist/common/roles/schema.d.ts +0 -84
  1059. package/dist/common/roles/schema.d.ts.map +0 -1
  1060. package/dist/common/roles/schema.js +0 -44
  1061. package/dist/common/roles/schema.js.map +0 -1
  1062. package/dist/index.js.map +0 -1
  1063. package/dist/placeholder-auth/core/common.d.ts.map +0 -1
  1064. package/dist/placeholder-auth/core/common.js.map +0 -1
  1065. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +0 -1
  1066. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +0 -1
  1067. package/dist/placeholder-auth/core/generators/index.d.ts.map +0 -1
  1068. package/dist/placeholder-auth/core/generators/index.js.map +0 -1
  1069. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +0 -1
  1070. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +0 -1
  1071. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +0 -1
  1072. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +0 -1
  1073. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +0 -1
  1074. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +0 -1
  1075. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  1076. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +0 -1
  1077. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +0 -1
  1078. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +0 -1
  1079. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +0 -1
  1080. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +0 -1
  1081. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +0 -1
  1082. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +0 -1
  1083. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
  1084. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  1085. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  1086. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
  1087. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  1088. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -34
  1089. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
  1090. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
  1091. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
  1092. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +0 -1
  1093. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
  1094. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
  1095. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +0 -45
  1096. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +0 -1
  1097. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js +0 -27
  1098. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +0 -1
  1099. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +0 -1
  1100. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +0 -1
  1101. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +0 -1
  1102. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +0 -1
  1103. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +0 -1
  1104. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +0 -1
  1105. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +0 -1
  1106. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +0 -1
  1107. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +0 -1
  1108. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +0 -1
  1109. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +0 -1
  1110. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +0 -1
  1111. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
  1112. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +0 -1
  1113. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +0 -1
  1114. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +0 -1
  1115. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +0 -1
  1116. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +0 -1
  1117. package/dist/placeholder-auth/core/index.d.ts.map +0 -1
  1118. package/dist/placeholder-auth/core/index.js.map +0 -1
  1119. package/dist/placeholder-auth/core/node.d.ts.map +0 -1
  1120. package/dist/placeholder-auth/core/node.js.map +0 -1
  1121. package/dist/placeholder-auth/core/schema/models.d.ts.map +0 -1
  1122. package/dist/placeholder-auth/core/schema/models.js.map +0 -1
  1123. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +0 -1
  1124. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +0 -1
  1125. package/dist/placeholder-auth/core/web.d.ts.map +0 -1
  1126. package/dist/placeholder-auth/core/web.js.map +0 -1
  1127. package/dist/placeholder-auth/index.d.ts.map +0 -1
  1128. package/dist/placeholder-auth/index.js.map +0 -1
  1129. package/dist/placeholder-auth/metadata.json +0 -9
  1130. package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js +0 -56
  1131. package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js.map +0 -1
  1132. package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js +0 -201
  1133. package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js.map +0 -1
  1134. package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js +0 -36
  1135. package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js.map +0 -1
  1136. package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js +0 -401
  1137. package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js.map +0 -1
  1138. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js +0 -39
  1139. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map +0 -1
  1140. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js +0 -197
  1141. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map +0 -1
  1142. package/dist/web/assets/__federation_fn_import-CGvRdRVe.js +0 -421
  1143. package/dist/web/assets/__federation_fn_import-CGvRdRVe.js.map +0 -1
  1144. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-D1kBtwsm.js +0 -341
  1145. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-D1kBtwsm.js.map +0 -1
  1146. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js +0 -10289
  1147. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +0 -1
  1148. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js +0 -23637
  1149. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js.map +0 -1
  1150. package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js +0 -250
  1151. package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js.map +0 -1
  1152. package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
  1153. package/dist/web/assets/__federation_shared_react-uocnGSER.js.map +0 -1
  1154. package/dist/web/assets/__federation_shared_zod-BK7IELHt.js +0 -4380
  1155. package/dist/web/assets/__federation_shared_zod-BK7IELHt.js.map +0 -1
  1156. package/dist/web/assets/index-B1hOKVPw.js +0 -574
  1157. package/dist/web/assets/index-B1hOKVPw.js.map +0 -1
  1158. package/dist/web/assets/index-l0sNRNKZ.js.map +0 -1
  1159. package/dist/web/assets/index-ydDQKauE.js +0 -101
  1160. package/dist/web/assets/index-ydDQKauE.js.map +0 -1
  1161. package/dist/web/assets/index.esm-DYWXRkn-.js +0 -2627
  1162. package/dist/web/assets/index.esm-DYWXRkn-.js.map +0 -1
  1163. package/dist/web/assets/model-merger-BVBtbNAj.js +0 -1708
  1164. package/dist/web/assets/model-merger-BVBtbNAj.js.map +0 -1
  1165. package/dist/web/assets/plugin-definition-Bdhuga1j.js +0 -36
  1166. package/dist/web/assets/plugin-definition-Bdhuga1j.js.map +0 -1
  1167. package/dist/web/assets/plugin-definition-C9d7ykhX.js +0 -24
  1168. package/dist/web/assets/plugin-definition-C9d7ykhX.js.map +0 -1
  1169. package/dist/web/assets/plugin-definition-QzgXWr1I.js +0 -24
  1170. package/dist/web/assets/plugin-definition-QzgXWr1I.js.map +0 -1
  1171. package/dist/web/assets/react-B23vKoD0.js +0 -47
  1172. package/dist/web/assets/react-B23vKoD0.js.map +0 -1
  1173. package/dist/web/assets/remoteEntry.js +0 -66
  1174. package/dist/web/assets/remoteEntry.js.map +0 -1
  1175. package/dist/web/assets/role-editor-form-BkcoVwtU.js +0 -319
  1176. package/dist/web/assets/role-editor-form-BkcoVwtU.js.map +0 -1
  1177. package/dist/web/assets/style-ZUYizAnf.css +0 -93
  1178. package/dist/web/assets/styles-Dfjm_ApH.js +0 -201
  1179. package/dist/web/assets/styles-Dfjm_ApH.js.map +0 -1
  1180. package/dist/web-export.js.map +0 -1
  1181. package/manifest.json +0 -4
  1182. /package/dist/{common → auth/core/schema}/roles/constants.d.ts +0 -0
  1183. /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
  1184. /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
  1185. /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
  1186. /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.d.ts +0 -0
  1187. /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.js +0 -0
  1188. /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.d.ts +0 -0
  1189. /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.d.ts +0 -0
  1190. /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.js +0 -0
  1191. /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +0 -0
  1192. /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +0 -0
  1193. /package/dist/{auth → local-auth}/core/generators/auth-module/index.d.ts +0 -0
  1194. /package/dist/{auth → local-auth}/core/generators/auth-module/index.js +0 -0
  1195. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +0 -0
  1196. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.js +0 -0
  1197. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.ts +0 -0
  1198. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +0 -0
  1199. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +0 -0
  1200. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +0 -0
  1201. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -0
  1202. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -0
  1203. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -0
  1204. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +0 -0
  1205. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +0 -0
  1206. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.js +0 -0
  1207. /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
  1208. /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.js +0 -0
  1209. /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.tsx +0 -0
  1210. /package/dist/{auth → local-auth}/core/generators/react-auth/index.d.ts +0 -0
  1211. /package/dist/{auth → local-auth}/core/generators/react-auth/index.js +0 -0
  1212. /package/dist/{auth → local-auth}/core/generators/react-session/index.d.ts +0 -0
  1213. /package/dist/{auth → local-auth}/core/generators/react-session/index.js +0 -0
  1214. /package/dist/{auth → local-auth}/core/generators/react-session/templates/src/app/user-session-provider.d.ts +0 -0
  1215. /package/dist/{auth → local-auth}/core/index.d.ts +0 -0
  1216. /package/dist/{auth → local-auth}/core/index.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-session-check.d.ts","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/app/user-session-check.tsx"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,YAAY,GAAG,IAAI,CAe5D"}
@@ -1,6 +0,0 @@
1
- query GetCurrentUserSession {
2
- currentUserSession {
3
- userId
4
- expiresAt
5
- }
6
- }
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- import { useUserSessionClient } from '$useUserSessionClient';
3
- import { GetCurrentUserSessionDocument } from '%generatedGraphqlImports';
4
- import { useQuery } from '@apollo/client';
5
- import { useEffect } from 'react';
6
- /**
7
- * Checks if the user session matches the loaded ID on first page load.
8
- *
9
- * This ensures that we have the correct user ID loaded on first page load.
10
- */
11
- export function UserSessionCheck() {
12
- const { data } = useQuery(GetCurrentUserSessionDocument, {
13
- fetchPolicy: 'no-cache',
14
- });
15
- const { client } = useUserSessionClient();
16
- useEffect(() => {
17
- if (!data?.currentUserSession?.userId)
18
- return;
19
- if (data.currentUserSession.userId !== client.getSession()?.userId) {
20
- client.signOut();
21
- }
22
- }, [data, client]);
23
- return null;
24
- }
25
- //# sourceMappingURL=user-session-check.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-session-check.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/app/user-session-check.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;;GAIG;AACH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,6BAA6B,EAAE;QACvD,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAE1C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,MAAM;YAAE,OAAO;QAE9C,IAAI,IAAI,CAAC,kBAAkB,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC;YACnE,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAEnB,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,28 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { useUserSessionClient } from '$useUserSessionClient';
4
- import { GetCurrentUserSessionDocument } from '%generatedGraphqlImports';
5
- import { useQuery } from '@apollo/client';
6
- import { useEffect } from 'react';
7
-
8
- /**
9
- * Checks if the user session matches the loaded ID on first page load.
10
- *
11
- * This ensures that we have the correct user ID loaded on first page load.
12
- */
13
- export function UserSessionCheck(): React.ReactElement | null {
14
- const { data } = useQuery(GetCurrentUserSessionDocument, {
15
- fetchPolicy: 'no-cache',
16
- });
17
- const { client } = useUserSessionClient();
18
-
19
- useEffect(() => {
20
- if (!data?.currentUserSession?.userId) return;
21
-
22
- if (data.currentUserSession.userId !== client.getSession()?.userId) {
23
- client.signOut();
24
- }
25
- }, [data, client]);
26
-
27
- return null;
28
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-session-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE,wBAAwB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4B9C"}
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createUserSessionClient } from '$userSessionClient';
3
- import { UserSessionClientContext } from '$useUserSessionClient';
4
- import { useEffect, useMemo, useState } from 'react';
5
- export function UserSessionProvider({ children, }) {
6
- const [userSessionClient] = useState(() => createUserSessionClient());
7
- const [session, setSession] = useState(userSessionClient.getSession());
8
- // Subscribe to session changes
9
- useEffect(() => userSessionClient.onSessionChange((newSession) => {
10
- setSession(newSession);
11
- }), [userSessionClient]);
12
- const contextValue = useMemo(() => ({
13
- client: userSessionClient,
14
- session,
15
- }), [userSessionClient, session]);
16
- return (_jsx(UserSessionClientContext.Provider, { value: contextValue, children: children }));
17
- }
18
- //# sourceMappingURL=user-session-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-session-provider.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMrD,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,GACiB;IACzB,MAAM,CAAC,iBAAiB,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,uBAAuB,EAAE,CAAC,CAAC;IACtE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,iBAAiB,CAAC,UAAU,EAAE,CAC/B,CAAC;IAEF,+BAA+B;IAC/B,SAAS,CACP,GAAG,EAAE,CACH,iBAAiB,CAAC,eAAe,CAAC,CAAC,UAAU,EAAE,EAAE;QAC/C,UAAU,CAAC,UAAU,CAAC,CAAC;IACzB,CAAC,CAAC,EACJ,CAAC,iBAAiB,CAAC,CACpB,CAAC;IAEF,MAAM,YAAY,GAAkC,OAAO,CACzD,GAAG,EAAE,CAAC,CAAC;QACL,MAAM,EAAE,iBAAiB;QACzB,OAAO;KACR,CAAC,EACF,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAC7B,CAAC;IAEF,OAAO,CACL,KAAC,wBAAwB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACnD,QAAQ,GACyB,CACrC,CAAC;AACJ,CAAC"}
@@ -1,45 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import type { UserSessionData } from '$userSessionClient';
4
- import type { UserSessionClientContextValue } from '$useUserSessionClient';
5
- import type React from 'react';
6
-
7
- import { createUserSessionClient } from '$userSessionClient';
8
- import { UserSessionClientContext } from '$useUserSessionClient';
9
- import { useEffect, useMemo, useState } from 'react';
10
-
11
- interface UserSessionProviderProps {
12
- children: React.ReactNode;
13
- }
14
-
15
- export function UserSessionProvider({
16
- children,
17
- }: UserSessionProviderProps): React.JSX.Element {
18
- const [userSessionClient] = useState(() => createUserSessionClient());
19
- const [session, setSession] = useState<UserSessionData | undefined>(
20
- userSessionClient.getSession(),
21
- );
22
-
23
- // Subscribe to session changes
24
- useEffect(
25
- () =>
26
- userSessionClient.onSessionChange((newSession) => {
27
- setSession(newSession);
28
- }),
29
- [userSessionClient],
30
- );
31
-
32
- const contextValue: UserSessionClientContextValue = useMemo(
33
- () => ({
34
- client: userSessionClient,
35
- session,
36
- }),
37
- [userSessionClient, session],
38
- );
39
-
40
- return (
41
- <UserSessionClientContext.Provider value={contextValue}>
42
- {children}
43
- </UserSessionClientContext.Provider>
44
- );
45
- }
@@ -1,12 +0,0 @@
1
- import type { UserSessionClient, UserSessionData } from '$userSessionClient';
2
- export interface UserSessionClientContextValue {
3
- client: UserSessionClient;
4
- session: UserSessionData | undefined;
5
- }
6
- export declare const UserSessionClientContext: import("react").Context<UserSessionClientContextValue | undefined>;
7
- /**
8
- * Hook to get the user session client
9
- * @returns The user session client
10
- */
11
- export declare function useUserSessionClient(): UserSessionClientContextValue;
12
- //# sourceMappingURL=use-user-session-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-user-session-client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI7E,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;CACtC;AAED,eAAO,MAAM,wBAAwB,oEAEzB,CAAC;AAEb;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,6BAA6B,CAUpE"}
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import { createContext, useContext } from 'react';
3
- export const UserSessionClientContext = createContext(undefined);
4
- /**
5
- * Hook to get the user session client
6
- * @returns The user session client
7
- */
8
- export function useUserSessionClient() {
9
- const client = useContext(UserSessionClientContext);
10
- if (!client) {
11
- throw new Error('useUserSessionClient must be used within a UserSessionClientProvider');
12
- }
13
- return client;
14
- }
15
- //# sourceMappingURL=use-user-session-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-user-session-client.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOlD,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAEnD,SAAS,CAAC,CAAC;AAEb;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,MAAM,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAEpD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,30 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import type { UserSessionClient, UserSessionData } from '$userSessionClient';
4
-
5
- import { createContext, useContext } from 'react';
6
-
7
- export interface UserSessionClientContextValue {
8
- client: UserSessionClient;
9
- session: UserSessionData | undefined;
10
- }
11
-
12
- export const UserSessionClientContext = createContext<
13
- UserSessionClientContextValue | undefined
14
- >(undefined);
15
-
16
- /**
17
- * Hook to get the user session client
18
- * @returns The user session client
19
- */
20
- export function useUserSessionClient(): UserSessionClientContextValue {
21
- const client = useContext(UserSessionClientContext);
22
-
23
- if (!client) {
24
- throw new Error(
25
- 'useUserSessionClient must be used within a UserSessionClientProvider',
26
- );
27
- }
28
-
29
- return client;
30
- }
@@ -1,79 +0,0 @@
1
- /**
2
- * Session data returned by the user session client
3
- */
4
- export interface UserSessionData {
5
- userId: string;
6
- }
7
- /**
8
- * Callback function for session change events
9
- */
10
- export type SessionChangeCallback = (session: UserSessionData | undefined) => void;
11
- /**
12
- * Configuration options for creating the user session client
13
- */
14
- export interface UserSessionClientConfig {
15
- /**
16
- * Optional initial session data
17
- */
18
- initialSession?: UserSessionData;
19
- }
20
- /**
21
- * User session client for managing session persistence using localStorage
22
- * Handles session state persistence and cross-tab synchronization
23
- */
24
- export declare class UserSessionClient {
25
- private static readonly USER_ID_STORAGE_KEY;
26
- private readonly storage;
27
- private readonly callbacks;
28
- private cleanupListener?;
29
- constructor(config?: UserSessionClientConfig);
30
- /**
31
- * Get the current session data
32
- * @returns Current session information
33
- */
34
- getSession(): UserSessionData | undefined;
35
- /**
36
- * Sign in a user with the given user ID
37
- * @param userId - The user ID to sign in
38
- */
39
- signIn(userId: string): void;
40
- /**
41
- * Sign out the current user
42
- */
43
- signOut(): void;
44
- /**
45
- * Subscribe to session changes
46
- * @param callback - Function to call when session changes
47
- * @returns Cleanup function to unsubscribe
48
- */
49
- onSessionChange(callback: SessionChangeCallback): () => void;
50
- /**
51
- * Clean up resources when the client is no longer needed
52
- */
53
- destroy(): void;
54
- /**
55
- * Get the current user ID from storage
56
- * @returns User ID or null if not authenticated
57
- */
58
- private getUserId;
59
- /**
60
- * Set the user ID in storage
61
- * @param userId - User ID to store, or null to clear
62
- */
63
- private setUserId;
64
- /**
65
- * Set up storage listener for cross-tab synchronization
66
- */
67
- private setupStorageListener;
68
- /**
69
- * Notify all registered callbacks of session changes
70
- */
71
- private notifyCallbacks;
72
- }
73
- /**
74
- * Factory function to create a user session client
75
- * @param config - Optional configuration for the client
76
- * @returns New UserSessionClient instance
77
- */
78
- export declare function createUserSessionClient(config?: UserSessionClientConfig): UserSessionClient;
79
- //# sourceMappingURL=user-session-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-session-client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,OAAO,EAAE,eAAe,GAAG,SAAS,KACjC,IAAI,CAAC;AAEV;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;CAClC;AAED;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAiB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAC9D,OAAO,CAAC,eAAe,CAAC,CAAa;gBAEzB,MAAM,CAAC,EAAE,uBAAuB;IAU5C;;;OAGG;IACH,UAAU,IAAI,eAAe,GAAG,SAAS;IAKzC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK5B;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;;OAIG;IACH,eAAe,CAAC,QAAQ,EAAE,qBAAqB,GAAG,MAAM,IAAI;IAO5D;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;OAGG;IACH,OAAO,CAAC,SAAS;IAIjB;;;OAGG;IACH,OAAO,CAAC,SAAS;IAejB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAQ5B;;OAEG;IACH,OAAO,CAAC,eAAe;CAMxB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,CAAC,EAAE,uBAAuB,GAC/B,iBAAiB,CAEnB"}
@@ -1,133 +0,0 @@
1
- // @ts-nocheck
2
- import { getSafeLocalStorage } from '%reactUtilsImports';
3
- /**
4
- * User session client for managing session persistence using localStorage
5
- * Handles session state persistence and cross-tab synchronization
6
- */
7
- export class UserSessionClient {
8
- constructor(config) {
9
- Object.defineProperty(this, "storage", {
10
- enumerable: true,
11
- configurable: true,
12
- writable: true,
13
- value: getSafeLocalStorage()
14
- });
15
- Object.defineProperty(this, "callbacks", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: new Set()
20
- });
21
- Object.defineProperty(this, "cleanupListener", {
22
- enumerable: true,
23
- configurable: true,
24
- writable: true,
25
- value: void 0
26
- });
27
- // Initialize storage listener for cross-tab synchronization
28
- this.setupStorageListener();
29
- // Set initial session if provided
30
- if (config?.initialSession?.userId) {
31
- this.setUserId(config.initialSession.userId);
32
- }
33
- }
34
- /**
35
- * Get the current session data
36
- * @returns Current session information
37
- */
38
- getSession() {
39
- const userId = this.getUserId();
40
- return userId ? { userId } : undefined;
41
- }
42
- /**
43
- * Sign in a user with the given user ID
44
- * @param userId - The user ID to sign in
45
- */
46
- signIn(userId) {
47
- this.setUserId(userId);
48
- this.notifyCallbacks();
49
- }
50
- /**
51
- * Sign out the current user
52
- */
53
- signOut() {
54
- this.setUserId(null);
55
- this.notifyCallbacks();
56
- }
57
- /**
58
- * Subscribe to session changes
59
- * @param callback - Function to call when session changes
60
- * @returns Cleanup function to unsubscribe
61
- */
62
- onSessionChange(callback) {
63
- this.callbacks.add(callback);
64
- return () => {
65
- this.callbacks.delete(callback);
66
- };
67
- }
68
- /**
69
- * Clean up resources when the client is no longer needed
70
- */
71
- destroy() {
72
- this.cleanupListener?.();
73
- this.callbacks.clear();
74
- }
75
- /**
76
- * Get the current user ID from storage
77
- * @returns User ID or null if not authenticated
78
- */
79
- getUserId() {
80
- return this.storage.getItem(UserSessionClient.USER_ID_STORAGE_KEY);
81
- }
82
- /**
83
- * Set the user ID in storage
84
- * @param userId - User ID to store, or null to clear
85
- */
86
- setUserId(userId) {
87
- const currentUserId = this.getUserId();
88
- const userIdChanged = userId !== currentUserId;
89
- if (!userIdChanged) {
90
- return;
91
- }
92
- if (userId) {
93
- this.storage.setItem(UserSessionClient.USER_ID_STORAGE_KEY, userId);
94
- }
95
- else {
96
- this.storage.removeItem(UserSessionClient.USER_ID_STORAGE_KEY);
97
- }
98
- }
99
- /**
100
- * Set up storage listener for cross-tab synchronization
101
- */
102
- setupStorageListener() {
103
- this.cleanupListener = this.storage.addEventListener((key) => {
104
- if (key === UserSessionClient.USER_ID_STORAGE_KEY) {
105
- this.notifyCallbacks();
106
- }
107
- });
108
- }
109
- /**
110
- * Notify all registered callbacks of session changes
111
- */
112
- notifyCallbacks() {
113
- const session = this.getSession();
114
- for (const callback of this.callbacks) {
115
- callback(session);
116
- }
117
- }
118
- }
119
- Object.defineProperty(UserSessionClient, "USER_ID_STORAGE_KEY", {
120
- enumerable: true,
121
- configurable: true,
122
- writable: true,
123
- value: 'APP_USER_ID'
124
- });
125
- /**
126
- * Factory function to create a user session client
127
- * @param config - Optional configuration for the client
128
- * @returns New UserSessionClient instance
129
- */
130
- export function createUserSessionClient(config) {
131
- return new UserSessionClient(config);
132
- }
133
- //# sourceMappingURL=user-session-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-session-client.js","sourceRoot":"","sources":["../../../../../../../../src/auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AA0BzD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAM5B,YAAY,MAAgC;QAJ3B;;;;mBAAU,mBAAmB,EAAE;WAAC;QAChC;;;;mBAAY,IAAI,GAAG,EAAyB;WAAC;QACtD;;;;;WAA6B;QAGnC,4DAA4D;QAC5D,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAE5B,kCAAkC;QAClC,IAAI,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;YACnC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACzC,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAc;QACnB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,QAA+B;QAC7C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAED;;;OAGG;IACK,SAAS;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACK,SAAS,CAAC,MAAqB;QACrC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACvC,MAAM,aAAa,GAAG,MAAM,KAAK,aAAa,CAAC;QAE/C,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QACtE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED;;OAEG;IACK,oBAAoB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,KAAK,iBAAiB,CAAC,mBAAmB,EAAE,CAAC;gBAClD,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,eAAe;QACrB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;;AA3GuB;;;;WAAsB,aAAa;EAAhB,CAAiB;AA8G9D;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAgC;IAEhC,OAAO,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC"}
@@ -1,153 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { getSafeLocalStorage } from '%reactUtilsImports';
4
-
5
- /**
6
- * Session data returned by the user session client
7
- */
8
- export interface UserSessionData {
9
- userId: string;
10
- }
11
-
12
- /**
13
- * Callback function for session change events
14
- */
15
- export type SessionChangeCallback = (
16
- session: UserSessionData | undefined,
17
- ) => void;
18
-
19
- /**
20
- * Configuration options for creating the user session client
21
- */
22
- export interface UserSessionClientConfig {
23
- /**
24
- * Optional initial session data
25
- */
26
- initialSession?: UserSessionData;
27
- }
28
-
29
- /**
30
- * User session client for managing session persistence using localStorage
31
- * Handles session state persistence and cross-tab synchronization
32
- */
33
- export class UserSessionClient {
34
- private static readonly USER_ID_STORAGE_KEY = 'APP_USER_ID';
35
- private readonly storage = getSafeLocalStorage();
36
- private readonly callbacks = new Set<SessionChangeCallback>();
37
- private cleanupListener?: () => void;
38
-
39
- constructor(config?: UserSessionClientConfig) {
40
- // Initialize storage listener for cross-tab synchronization
41
- this.setupStorageListener();
42
-
43
- // Set initial session if provided
44
- if (config?.initialSession?.userId) {
45
- this.setUserId(config.initialSession.userId);
46
- }
47
- }
48
-
49
- /**
50
- * Get the current session data
51
- * @returns Current session information
52
- */
53
- getSession(): UserSessionData | undefined {
54
- const userId = this.getUserId();
55
- return userId ? { userId } : undefined;
56
- }
57
-
58
- /**
59
- * Sign in a user with the given user ID
60
- * @param userId - The user ID to sign in
61
- */
62
- signIn(userId: string): void {
63
- this.setUserId(userId);
64
- this.notifyCallbacks();
65
- }
66
-
67
- /**
68
- * Sign out the current user
69
- */
70
- signOut(): void {
71
- this.setUserId(null);
72
- this.notifyCallbacks();
73
- }
74
-
75
- /**
76
- * Subscribe to session changes
77
- * @param callback - Function to call when session changes
78
- * @returns Cleanup function to unsubscribe
79
- */
80
- onSessionChange(callback: SessionChangeCallback): () => void {
81
- this.callbacks.add(callback);
82
- return () => {
83
- this.callbacks.delete(callback);
84
- };
85
- }
86
-
87
- /**
88
- * Clean up resources when the client is no longer needed
89
- */
90
- destroy(): void {
91
- this.cleanupListener?.();
92
- this.callbacks.clear();
93
- }
94
-
95
- /**
96
- * Get the current user ID from storage
97
- * @returns User ID or null if not authenticated
98
- */
99
- private getUserId(): string | null {
100
- return this.storage.getItem(UserSessionClient.USER_ID_STORAGE_KEY);
101
- }
102
-
103
- /**
104
- * Set the user ID in storage
105
- * @param userId - User ID to store, or null to clear
106
- */
107
- private setUserId(userId: string | null): void {
108
- const currentUserId = this.getUserId();
109
- const userIdChanged = userId !== currentUserId;
110
-
111
- if (!userIdChanged) {
112
- return;
113
- }
114
-
115
- if (userId) {
116
- this.storage.setItem(UserSessionClient.USER_ID_STORAGE_KEY, userId);
117
- } else {
118
- this.storage.removeItem(UserSessionClient.USER_ID_STORAGE_KEY);
119
- }
120
- }
121
-
122
- /**
123
- * Set up storage listener for cross-tab synchronization
124
- */
125
- private setupStorageListener(): void {
126
- this.cleanupListener = this.storage.addEventListener((key) => {
127
- if (key === UserSessionClient.USER_ID_STORAGE_KEY) {
128
- this.notifyCallbacks();
129
- }
130
- });
131
- }
132
-
133
- /**
134
- * Notify all registered callbacks of session changes
135
- */
136
- private notifyCallbacks(): void {
137
- const session = this.getSession();
138
- for (const callback of this.callbacks) {
139
- callback(session);
140
- }
141
- }
142
- }
143
-
144
- /**
145
- * Factory function to create a user session client
146
- * @param config - Optional configuration for the client
147
- * @returns New UserSessionClient instance
148
- */
149
- export function createUserSessionClient(
150
- config?: UserSessionClientConfig,
151
- ): UserSessionClient {
152
- return new UserSessionClient(config);
153
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":";;;AA2BA,wBAwDG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,WAAW,EACX,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,uCAAuC,EACvC,qCAAqC,EACrC,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,mEAAmE,CAAC;AAC/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC5C,4BAA4B;QAC5B,WAAW,CAAC,mBAAmB,CAAC;YAC9B,QAAQ;YACR,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,WAAW,EAAE,EAAE,EAAE;gBACnE,MAAM,IAAI,GAAG,WAAW,CAAC,iBAAiB,CACxC,iBAAiB,EACjB,QAAQ,CACe,CAAC;gBAE1B,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE;oBACpD,GAAG,uCAAuC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;oBACjE,UAAU,EAAE,mBAAmB,CAAC;wBAC9B,oBAAoB,EAAE,mBAAmB,CAAC,UAAU,CAClD,IAAI,CAAC,SAAS,CAAC,WAAW,CAC3B;wBACD,aAAa,EAAE,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;qBACnE,CAAC;oBACF,aAAa,EAAE,kBAAkB,CAAC;wBAChC,EAAE,EAAE,gBAAgB;wBACpB,IAAI,EAAE,UAAU;wBAChB,QAAQ,EAAE;4BACR,MAAM,EAAE,0BAA0B,CAAC,EAAE,CAAC;4BACtC,MAAM,EAAE,8BAA8B,CAAC,EAAE,CAAC;yBAC3C;qBACF,CAAC;iBACH,CAAC,CAAC;gBAEH,WAAW,CAAC,eAAe,CAAC,qCAAqC,EAAE,CAAC,CAAC;YACvE,CAAC;SACF,CAAC,CAAC;QAEH,wBAAwB;QACxB,WAAW,CAAC,mBAAmB,CAAC;YAC9B,QAAQ;YACR,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC3B,WAAW,CAAC,eAAe,CAAC;oBAC1B,GAAG,6BAA6B,EAAE;oBAClC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;oBACnC,SAAS,EAAE,kBAAkB,CAAC,EAAE,CAAC;oBACjC,SAAS,EAAE,kBAAkB,CAAC,EAAE,CAAC;oBACjC,YAAY,EAAE,qBAAqB,CAAC,EAAE,CAAC;oBACvC,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC;iBACpC,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';
2
- import type { AuthPluginDefinition } from './plugin-definition.js';
3
- export declare function createAuthModels({ authFeatureRef, modelRefs, }: Pick<AuthPluginDefinition, 'authFeatureRef' | 'modelRefs'>): {
4
- user: ModelMergerModelInput;
5
- userAccount: ModelMergerModelInput;
6
- userRole: ModelMergerModelInput;
7
- userSession: ModelMergerModelInput;
8
- };
9
- //# sourceMappingURL=models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/auth/core/schema/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,SAAS,GACV,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,WAAW,CAAC,GAAG;IAC9D,IAAI,EAAE,qBAAqB,CAAC;IAC5B,WAAW,EAAE,qBAAqB,CAAC;IACnC,QAAQ,EAAE,qBAAqB,CAAC;IAChC,WAAW,EAAE,qBAAqB,CAAC;CACpC,CAyMA"}