@baseplate-dev/plugin-auth 4.0.0 → 4.0.2

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 (339) hide show
  1. package/CHANGELOG.md +621 -0
  2. package/dist/auth/core/common.d.ts +2 -5
  3. package/dist/auth/core/common.d.ts.map +1 -1
  4. package/dist/auth/core/common.js +14 -14
  5. package/dist/auth/core/common.js.map +1 -1
  6. package/dist/auth/core/node.d.ts +3 -3
  7. package/dist/auth/core/node.d.ts.map +1 -1
  8. package/dist/auth/core/node.js +5 -8
  9. package/dist/auth/core/node.js.map +1 -1
  10. package/dist/auth/core/web.d.ts +3 -3
  11. package/dist/auth/core/web.d.ts.map +1 -1
  12. package/dist/auth/core/web.js +4 -5
  13. package/dist/auth/core/web.js.map +1 -1
  14. package/dist/auth0/core/common.d.ts +3 -5
  15. package/dist/auth0/core/common.d.ts.map +1 -1
  16. package/dist/auth0/core/common.js +11 -14
  17. package/dist/auth0/core/common.js.map +1 -1
  18. package/dist/auth0/core/node.d.ts +3 -3
  19. package/dist/auth0/core/node.d.ts.map +1 -1
  20. package/dist/auth0/core/node.js +5 -8
  21. package/dist/auth0/core/node.js.map +1 -1
  22. package/dist/auth0/core/schema/plugin-definition.js +1 -1
  23. package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
  24. package/dist/auth0/core/web.d.ts +3 -3
  25. package/dist/auth0/core/web.d.ts.map +1 -1
  26. package/dist/auth0/core/web.js +4 -5
  27. package/dist/auth0/core/web.js.map +1 -1
  28. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +1 -1
  29. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -1
  30. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  31. package/dist/local-auth/admin/common.d.ts +3 -2
  32. package/dist/local-auth/admin/common.d.ts.map +1 -1
  33. package/dist/local-auth/admin/common.js +6 -7
  34. package/dist/local-auth/admin/common.js.map +1 -1
  35. package/dist/local-auth/admin/node.d.ts +3 -6
  36. package/dist/local-auth/admin/node.d.ts.map +1 -1
  37. package/dist/local-auth/admin/node.js +13 -12
  38. package/dist/local-auth/admin/node.js.map +1 -1
  39. package/dist/local-auth/admin/web.d.ts +3 -4
  40. package/dist/local-auth/admin/web.d.ts.map +1 -1
  41. package/dist/local-auth/admin/web.js +22 -21
  42. package/dist/local-auth/admin/web.js.map +1 -1
  43. package/dist/local-auth/constants/model-names.d.ts +4 -0
  44. package/dist/local-auth/constants/model-names.d.ts.map +1 -1
  45. package/dist/local-auth/constants/model-names.js +4 -0
  46. package/dist/local-auth/constants/model-names.js.map +1 -1
  47. package/dist/local-auth/core/common.d.ts +3 -5
  48. package/dist/local-auth/core/common.d.ts.map +1 -1
  49. package/dist/local-auth/core/common.js +10 -13
  50. package/dist/local-auth/core/common.js.map +1 -1
  51. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +49 -0
  52. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
  53. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +17 -6
  54. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
  55. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +209 -0
  56. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  57. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
  58. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -1
  59. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
  60. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -1
  61. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +47 -1
  62. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
  63. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +48 -2
  64. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
  65. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +18 -0
  66. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -1
  67. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +12 -0
  68. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -1
  69. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +253 -0
  70. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  71. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +102 -4
  72. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  73. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +15 -0
  74. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -1
  75. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +15 -0
  76. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -1
  77. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +18 -0
  78. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
  79. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
  80. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
  81. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
  82. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
  83. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
  84. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
  85. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
  86. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
  87. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
  88. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts +40 -0
  89. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +1 -0
  90. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js +106 -0
  91. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +1 -0
  92. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts +146 -0
  93. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
  94. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
  95. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +88 -0
  96. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
  97. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +141 -0
  98. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +35 -0
  99. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
  100. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +157 -0
  101. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
  102. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +233 -0
  103. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  104. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +48 -14
  105. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  106. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +79 -15
  107. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
  108. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
  109. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
  110. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
  111. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
  112. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
  113. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
  114. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
  115. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
  116. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
  117. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
  118. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
  119. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
  120. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
  121. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
  122. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
  123. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
  124. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
  125. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
  126. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
  127. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
  128. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
  129. package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
  130. package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
  131. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
  132. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
  133. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
  134. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
  135. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  136. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
  137. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
  138. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
  139. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
  140. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  141. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
  142. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
  143. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
  144. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
  145. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  146. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +1 -0
  147. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  148. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +1 -1
  149. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  150. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +2 -0
  151. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  152. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +1 -0
  153. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  154. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +1 -0
  155. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  156. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -1
  157. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
  158. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -1
  159. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +2 -2
  160. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  161. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +2 -2
  162. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  163. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -0
  164. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  165. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +722 -4
  166. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  167. package/dist/local-auth/core/generators/auth-routes/generated/index.js +2 -0
  168. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -1
  169. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +4 -0
  170. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  171. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +4 -0
  172. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  173. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +4 -1
  174. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  175. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +14 -0
  176. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  177. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
  178. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
  179. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
  180. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
  181. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +1216 -34
  182. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  183. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +70 -2
  184. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  185. package/dist/local-auth/core/generators/auth-routes/index.d.ts +2 -0
  186. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -1
  187. package/dist/local-auth/core/generators/auth-routes/index.js +1 -0
  188. package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -1
  189. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
  190. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
  191. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
  192. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
  196. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
  197. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
  198. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
  199. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +1 -1
  200. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
  201. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +6 -11
  202. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  203. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +20 -19
  204. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +1 -1
  205. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
  206. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +2 -2
  207. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  208. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
  209. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
  210. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
  211. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +131 -0
  212. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
  213. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +240 -0
  214. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
  215. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
  216. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
  217. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
  218. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
  219. package/dist/local-auth/core/generators/index.d.ts +1 -0
  220. package/dist/local-auth/core/generators/index.d.ts.map +1 -1
  221. package/dist/local-auth/core/generators/index.js +1 -0
  222. package/dist/local-auth/core/generators/index.js.map +1 -1
  223. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +12 -0
  224. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
  225. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +6 -0
  226. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -1
  227. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +6 -0
  228. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
  229. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +6 -0
  230. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -1
  231. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +1 -1
  232. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -1
  233. package/dist/local-auth/core/node.d.ts +3 -3
  234. package/dist/local-auth/core/node.d.ts.map +1 -1
  235. package/dist/local-auth/core/node.js +16 -9
  236. package/dist/local-auth/core/node.js.map +1 -1
  237. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  238. package/dist/local-auth/core/schema/models.js +60 -0
  239. package/dist/local-auth/core/schema/models.js.map +1 -1
  240. package/dist/local-auth/core/web.d.ts +3 -3
  241. package/dist/local-auth/core/web.d.ts.map +1 -1
  242. package/dist/local-auth/core/web.js +4 -5
  243. package/dist/local-auth/core/web.js.map +1 -1
  244. package/dist/placeholder-auth/core/common.d.ts +2 -5
  245. package/dist/placeholder-auth/core/common.d.ts.map +1 -1
  246. package/dist/placeholder-auth/core/common.js +10 -13
  247. package/dist/placeholder-auth/core/common.js.map +1 -1
  248. package/dist/placeholder-auth/core/node.d.ts +3 -3
  249. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  250. package/dist/placeholder-auth/core/node.js +5 -8
  251. package/dist/placeholder-auth/core/node.js.map +1 -1
  252. package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -1
  253. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
  254. package/dist/placeholder-auth/core/web.d.ts +3 -3
  255. package/dist/placeholder-auth/core/web.d.ts.map +1 -1
  256. package/dist/placeholder-auth/core/web.js +4 -5
  257. package/dist/placeholder-auth/core/web.js.map +1 -1
  258. package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js +40 -0
  259. package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js.map +1 -0
  260. package/dist/web/assets/{__federation_expose_auth0CoreWeb-CZueDXPK.js → __federation_expose_auth0CoreWeb-CfhSWZsK.js} +9 -10
  261. package/dist/web/assets/{__federation_expose_auth0CoreWeb-CZueDXPK.js.map → __federation_expose_auth0CoreWeb-CfhSWZsK.js.map} +1 -1
  262. package/dist/web/assets/__federation_expose_authCoreCommon-D3-Gk9mI.js +29 -0
  263. package/dist/web/assets/__federation_expose_authCoreCommon-D3-Gk9mI.js.map +1 -0
  264. package/dist/web/assets/{__federation_expose_authCoreWeb-C8rgnA2v.js → __federation_expose_authCoreWeb-DZoAij9e.js} +10 -11
  265. package/dist/web/assets/{__federation_expose_authCoreWeb-C8rgnA2v.js.map → __federation_expose_authCoreWeb-DZoAij9e.js.map} +1 -1
  266. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C75-DAzO.js → __federation_expose_local-authAdminCommon-BRHnF0Hn.js} +8 -9
  267. package/dist/web/assets/__federation_expose_local-authAdminCommon-BRHnF0Hn.js.map +1 -0
  268. package/dist/web/assets/__federation_expose_local-authAdminWeb-dYAIxuqC.js +41 -0
  269. package/dist/web/assets/__federation_expose_local-authAdminWeb-dYAIxuqC.js.map +1 -0
  270. package/dist/web/assets/__federation_expose_local-authCoreCommon-CIwvOx0d.js +21 -0
  271. package/dist/web/assets/__federation_expose_local-authCoreCommon-CIwvOx0d.js.map +1 -0
  272. package/dist/web/assets/{__federation_expose_local-authCoreWeb-ChyvdsRq.js → __federation_expose_local-authCoreWeb-Bwooi2qZ.js} +70 -11
  273. package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +1 -0
  274. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js +23 -0
  275. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map +1 -0
  276. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CT8JKYLB.js → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js} +9 -13
  277. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CT8JKYLB.js.map → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map} +1 -1
  278. package/dist/web/assets/{__federation_fn_import-C_QCk5FX.js → __federation_fn_import-pxYUpmb_.js} +2 -2
  279. package/dist/web/assets/{__federation_fn_import-C_QCk5FX.js.map → __federation_fn_import-pxYUpmb_.js.map} +1 -1
  280. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DtztAtUw.js → web-BXi2UCP-.js} +39 -120
  281. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +1 -0
  282. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js +17445 -0
  283. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +1 -0
  284. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js +52536 -0
  285. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +1 -0
  286. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-Bxy-1ETU.js → utils-UiZ-8JBg.js} +30 -10
  287. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +1 -0
  288. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DooFj-IS.js → react-router-BPEAtEJI.js} +1069 -746
  289. package/dist/web/assets/__federation_shared_@tanstack/react-router-BPEAtEJI.js.map +1 -0
  290. package/dist/web/assets/{get-auth-plugin-definition-D2XMaoy7.js → get-auth-plugin-definition-DPsrvQbo.js} +2 -2
  291. package/dist/web/assets/{get-auth-plugin-definition-D2XMaoy7.js.map → get-auth-plugin-definition-DPsrvQbo.js.map} +1 -1
  292. package/dist/web/assets/{index-DwJT6_Wn.js → index-CSfs0UAV.js} +2 -2
  293. package/dist/web/assets/{index-DwJT6_Wn.js.map → index-CSfs0UAV.js.map} +1 -1
  294. package/dist/web/assets/{index.esm-ChwWPPiL.js → index.esm-BoRQu8mM.js} +2 -2
  295. package/dist/web/assets/{index.esm-ChwWPPiL.js.map → index.esm-BoRQu8mM.js.map} +1 -1
  296. package/dist/web/assets/{isEqual-DAXqKRba.js → isEqual-BQtm2LNT.js} +5 -5
  297. package/dist/web/assets/{isEqual-DAXqKRba.js.map → isEqual-BQtm2LNT.js.map} +1 -1
  298. package/dist/web/assets/{model-merger-gGkFnyaY.js → model-merger-CdjliK9v.js} +266 -101
  299. package/dist/web/assets/model-merger-CdjliK9v.js.map +1 -0
  300. package/dist/web/assets/{model-names-CEoSIalq.js → model-names-DrcaRxt1.js} +6 -2
  301. package/dist/web/assets/{model-names-CEoSIalq.js.map → model-names-DrcaRxt1.js.map} +1 -1
  302. package/dist/web/assets/{plugin-definition-rpMj4pr8.js → plugin-definition-BG6tu7Hh.js} +3 -3
  303. package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +1 -0
  304. package/dist/web/assets/{plugin-definition-QRBMcFiG.js → plugin-definition-BMYDEj3f.js} +3 -3
  305. package/dist/web/assets/plugin-definition-BMYDEj3f.js.map +1 -0
  306. package/dist/web/assets/{plugin-definition-hAzbWO7b.js → plugin-definition-DRhTuQas.js} +2 -2
  307. package/dist/web/assets/{plugin-definition-hAzbWO7b.js.map → plugin-definition-DRhTuQas.js.map} +1 -1
  308. package/dist/web/assets/{plugin-definition-_slrOM0G.js → plugin-definition-j1nJ0FFI.js} +2 -2
  309. package/dist/web/assets/{plugin-definition-_slrOM0G.js.map → plugin-definition-j1nJ0FFI.js.map} +1 -1
  310. package/dist/web/assets/{react-DbX1FP85.js → react-CBhSWxr_.js} +2 -2
  311. package/dist/web/assets/{react-DbX1FP85.js.map → react-CBhSWxr_.js.map} +1 -1
  312. package/dist/web/assets/remoteEntry.js +20 -20
  313. package/dist/web/assets/{style-DZ-aOCkd.css → style-DiK_rD1L.css} +1 -1
  314. package/dist/web/assets/{styles-DqLt1Blm.js → styles-BbHyE-2h.js} +3 -3
  315. package/dist/web/assets/{styles-DqLt1Blm.js.map → styles-BbHyE-2h.js.map} +1 -1
  316. package/dist/web/index.html +1 -1
  317. package/package.json +23 -20
  318. package/dist/web/assets/__federation_expose_auth0CoreCommon-Ga9LD3d6.js +0 -43
  319. package/dist/web/assets/__federation_expose_auth0CoreCommon-Ga9LD3d6.js.map +0 -1
  320. package/dist/web/assets/__federation_expose_authCoreCommon-BrTLsuJC.js +0 -29
  321. package/dist/web/assets/__federation_expose_authCoreCommon-BrTLsuJC.js.map +0 -1
  322. package/dist/web/assets/__federation_expose_local-authAdminCommon-C75-DAzO.js.map +0 -1
  323. package/dist/web/assets/__federation_expose_local-authAdminWeb-D2xGvwyL.js +0 -40
  324. package/dist/web/assets/__federation_expose_local-authAdminWeb-D2xGvwyL.js.map +0 -1
  325. package/dist/web/assets/__federation_expose_local-authCoreCommon-BFUbyPYg.js +0 -27
  326. package/dist/web/assets/__federation_expose_local-authCoreCommon-BFUbyPYg.js.map +0 -1
  327. package/dist/web/assets/__federation_expose_local-authCoreWeb-ChyvdsRq.js.map +0 -1
  328. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js +0 -26
  329. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map +0 -1
  330. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DtztAtUw.js.map +0 -1
  331. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js +0 -10507
  332. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js.map +0 -1
  333. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DA_4I2Vy.js +0 -24082
  334. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DA_4I2Vy.js.map +0 -1
  335. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Bxy-1ETU.js.map +0 -1
  336. package/dist/web/assets/__federation_shared_@tanstack/react-router-DooFj-IS.js.map +0 -1
  337. package/dist/web/assets/model-merger-gGkFnyaY.js.map +0 -1
  338. package/dist/web/assets/plugin-definition-QRBMcFiG.js.map +0 -1
  339. package/dist/web/assets/plugin-definition-rpMj4pr8.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAC;AAEpD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAsHA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAC"}
@@ -2,6 +2,35 @@ import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
2
  import { apolloErrorImportsProvider, graphqlImportsProvider, reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
3
  import path from 'node:path';
4
4
  import { reactSessionImportsProvider } from '#src/local-auth/core/generators/react-session/generated/ts-import-providers.js';
5
+ const constants = createTsTemplateFile({
6
+ fileOptions: { kind: 'singleton' },
7
+ group: 'main',
8
+ importMapProviders: {},
9
+ name: 'constants',
10
+ projectExports: {
11
+ PASSWORD_MAX_LENGTH: { isTypeOnly: false },
12
+ PASSWORD_MIN_LENGTH: { isTypeOnly: false },
13
+ },
14
+ source: {
15
+ path: path.join(import.meta.dirname, '../templates/routes/auth_/-constants.ts'),
16
+ },
17
+ variables: {},
18
+ });
19
+ const forgotPassword = createTsTemplateFile({
20
+ fileOptions: { kind: 'singleton' },
21
+ group: 'main',
22
+ importMapProviders: {
23
+ graphqlImports: graphqlImportsProvider,
24
+ reactComponentsImports: reactComponentsImportsProvider,
25
+ reactErrorImports: reactErrorImportsProvider,
26
+ },
27
+ name: 'forgot-password',
28
+ referencedGeneratorTemplates: { constants: {} },
29
+ source: {
30
+ path: path.join(import.meta.dirname, '../templates/routes/auth_/forgot-password.tsx'),
31
+ },
32
+ variables: {},
33
+ });
5
34
  const login = createTsTemplateFile({
6
35
  fileOptions: { kind: 'singleton' },
7
36
  group: 'main',
@@ -13,6 +42,7 @@ const login = createTsTemplateFile({
13
42
  reactSessionImports: reactSessionImportsProvider,
14
43
  },
15
44
  name: 'login',
45
+ referencedGeneratorTemplates: { constants: {} },
16
46
  source: {
17
47
  path: path.join(import.meta.dirname, '../templates/routes/auth_/login.tsx'),
18
48
  },
@@ -29,11 +59,28 @@ const register = createTsTemplateFile({
29
59
  reactSessionImports: reactSessionImportsProvider,
30
60
  },
31
61
  name: 'register',
62
+ referencedGeneratorTemplates: { constants: {} },
32
63
  source: {
33
64
  path: path.join(import.meta.dirname, '../templates/routes/auth_/register.tsx'),
34
65
  },
35
66
  variables: {},
36
67
  });
68
+ const resetPassword = createTsTemplateFile({
69
+ fileOptions: { kind: 'singleton' },
70
+ group: 'main',
71
+ importMapProviders: {
72
+ apolloErrorImports: apolloErrorImportsProvider,
73
+ graphqlImports: graphqlImportsProvider,
74
+ reactComponentsImports: reactComponentsImportsProvider,
75
+ reactErrorImports: reactErrorImportsProvider,
76
+ },
77
+ name: 'reset-password',
78
+ referencedGeneratorTemplates: { constants: {} },
79
+ source: {
80
+ path: path.join(import.meta.dirname, '../templates/routes/auth_/reset-password.tsx'),
81
+ },
82
+ variables: {},
83
+ });
37
84
  const route = createTsTemplateFile({
38
85
  fileOptions: { kind: 'singleton' },
39
86
  group: 'main',
@@ -44,6 +91,27 @@ const route = createTsTemplateFile({
44
91
  },
45
92
  variables: {},
46
93
  });
47
- export const mainGroup = { login, register, route };
48
- export const AUTH_CORE_AUTH_ROUTES_TEMPLATES = { mainGroup };
94
+ export const mainGroup = {
95
+ constants,
96
+ forgotPassword,
97
+ login,
98
+ register,
99
+ resetPassword,
100
+ route,
101
+ };
102
+ const verifyEmail = createTsTemplateFile({
103
+ fileOptions: { kind: 'singleton' },
104
+ importMapProviders: {
105
+ apolloErrorImports: apolloErrorImportsProvider,
106
+ graphqlImports: graphqlImportsProvider,
107
+ reactComponentsImports: reactComponentsImportsProvider,
108
+ reactErrorImports: reactErrorImportsProvider,
109
+ },
110
+ name: 'verify-email',
111
+ source: {
112
+ path: path.join(import.meta.dirname, '../templates/routes/auth_/verify-email.tsx'),
113
+ },
114
+ variables: {},
115
+ });
116
+ export const AUTH_CORE_AUTH_ROUTES_TEMPLATES = { mainGroup, verifyEmail };
49
117
  //# sourceMappingURL=typed-templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,MAAM,KAAK,GAAG,oBAAoB,CAAC;IACjC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE;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SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE;QACd,mBAAmB,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC1C,mBAAmB,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;KAC3C;IACD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,yCAAyC,CAC1C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE;QAClB,cAAc,EAAE,sBAAsB;QACtC,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,iBAAiB;IACvB,4BAA4B,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/C,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,+CAA+C,CAChD;KACF;IACD,SAAS,EAAE,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from './auth-routes.generator.js';
2
+ export type { AuthRoutesImportsProvider } from './generated/ts-import-providers.js';
3
+ export { authRoutesImportsProvider } from './generated/ts-import-providers.js';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './auth-routes.generator.js';
2
+ export { authRoutesImportsProvider } from './generated/ts-import-providers.js';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAE3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Minimum password length (matches backend validation)
3
+ */
4
+ export declare const PASSWORD_MIN_LENGTH = 8;
5
+ /**
6
+ * Maximum password length (matches backend validation)
7
+ * Also used for email and token validation to prevent DoS attacks
8
+ */
9
+ export declare const PASSWORD_MAX_LENGTH = 255;
10
+ //# sourceMappingURL=-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-constants.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC"}
@@ -0,0 +1,11 @@
1
+ // @ts-nocheck
2
+ /**
3
+ * Minimum password length (matches backend validation)
4
+ */
5
+ export const PASSWORD_MIN_LENGTH = 8;
6
+ /**
7
+ * Maximum password length (matches backend validation)
8
+ * Also used for email and token validation to prevent DoS attacks
9
+ */
10
+ export const PASSWORD_MAX_LENGTH = 255;
11
+ //# sourceMappingURL=-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-constants.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC"}
@@ -0,0 +1,12 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * Minimum password length (matches backend validation)
5
+ */
6
+ export const PASSWORD_MIN_LENGTH = 8;
7
+
8
+ /**
9
+ * Maximum password length (matches backend validation)
10
+ * Also used for email and token validation to prevent DoS attacks
11
+ */
12
+ export const PASSWORD_MAX_LENGTH = 255;
@@ -0,0 +1,2 @@
1
+ export declare const Route: import("@tanstack/router-core").Route<import("@tanstack/react-router").Register, never, never, never, never, never, undefined, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<import("@tanstack/react-router").Register, never, undefined, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, never, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
2
+ //# sourceMappingURL=forgot-password.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,KAAK,spBAOhB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // @ts-nocheck
3
+ import { PASSWORD_MAX_LENGTH } from '$constants';
4
+ import { graphql } from '%graphqlImports';
5
+ import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
6
+ import { logAndFormatError } from '%reactErrorImports';
7
+ import { useMutation } from '@apollo/client/react';
8
+ import { zodResolver } from '@hookform/resolvers/zod';
9
+ import { createFileRoute, Link, redirect } from '@tanstack/react-router';
10
+ import { useState } from 'react';
11
+ import { useForm } from 'react-hook-form';
12
+ import { toast } from 'sonner';
13
+ import { z } from 'zod';
14
+ export const Route = createFileRoute('/auth_/forgot-password')({
15
+ component: ForgotPasswordPage,
16
+ beforeLoad: ({ context: { userId } }) => {
17
+ if (userId) {
18
+ throw redirect({ to: '/' });
19
+ }
20
+ },
21
+ });
22
+ const formSchema = z.object({
23
+ email: z
24
+ .email()
25
+ .max(PASSWORD_MAX_LENGTH)
26
+ .transform((value) => value.toLowerCase()),
27
+ });
28
+ const requestPasswordResetMutation = graphql(`
29
+ mutation RequestPasswordReset($input: RequestPasswordResetInput!) {
30
+ requestPasswordReset(input: $input) {
31
+ success
32
+ }
33
+ }
34
+ `);
35
+ function ForgotPasswordPage() {
36
+ const [submitted, setSubmitted] = useState(false);
37
+ const { control, handleSubmit } = useForm({
38
+ resolver: zodResolver(formSchema),
39
+ reValidateMode: 'onBlur',
40
+ });
41
+ const [requestReset, { loading }] = useMutation(requestPasswordResetMutation);
42
+ const onSubmit = (data) => {
43
+ requestReset({
44
+ variables: {
45
+ input: { email: data.email },
46
+ },
47
+ })
48
+ .then(() => {
49
+ setSubmitted(true);
50
+ })
51
+ .catch((err) => {
52
+ toast.error(logAndFormatError(err, 'Sorry, we could not process your request.'));
53
+ });
54
+ };
55
+ if (submitted) {
56
+ return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Check your email" }), _jsx(CardDescription, { children: "If an account exists with that email, we've sent you a password reset link. The link will expire in 1 hour." })] }), _jsx(CardContent, { children: _jsx(Link, { to: "/auth/login", children: _jsx(Button, { variant: "secondary", className: "w-full", children: "Back to login" }) }) })] }));
57
+ }
58
+ return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Forgot your password?" }), _jsx(CardDescription, { children: "Enter your email address and we'll send you a link to reset your password." })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-6", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com" }), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Send Reset Link" })] }), _jsxs("div", { className: "mt-4 text-center text-sm", children: ["Remember your password?", ' ', _jsx(Link, { to: "/auth/login", className: "underline underline-offset-4", children: "Login" })] })] }) })] }));
59
+ }
60
+ //# sourceMappingURL=forgot-password.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgot-password.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,M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EAAC,0BAA0B,wCACf,GAAG,EAC3B,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,8BAA8B,sBAExD,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,127 @@
1
+ // @ts-nocheck
2
+
3
+ import { PASSWORD_MAX_LENGTH } from '$constants';
4
+ import { graphql } from '%graphqlImports';
5
+ import {
6
+ Button,
7
+ Card,
8
+ CardContent,
9
+ CardDescription,
10
+ CardHeader,
11
+ CardTitle,
12
+ InputFieldController,
13
+ } from '%reactComponentsImports';
14
+ import { logAndFormatError } from '%reactErrorImports';
15
+ import { useMutation } from '@apollo/client/react';
16
+ import { zodResolver } from '@hookform/resolvers/zod';
17
+ import { createFileRoute, Link, redirect } from '@tanstack/react-router';
18
+ import { useState } from 'react';
19
+ import { useForm } from 'react-hook-form';
20
+ import { toast } from 'sonner';
21
+ import { z } from 'zod';
22
+
23
+ export const Route = createFileRoute('/auth_/forgot-password')({
24
+ component: ForgotPasswordPage,
25
+ beforeLoad: ({ context: { userId } }) => {
26
+ if (userId) {
27
+ throw redirect({ to: '/' });
28
+ }
29
+ },
30
+ });
31
+
32
+ const formSchema = z.object({
33
+ email: z
34
+ .email()
35
+ .max(PASSWORD_MAX_LENGTH)
36
+ .transform((value) => value.toLowerCase()),
37
+ });
38
+
39
+ type FormData = z.infer<typeof formSchema>;
40
+
41
+ const requestPasswordResetMutation = graphql(`
42
+ mutation RequestPasswordReset($input: RequestPasswordResetInput!) {
43
+ requestPasswordReset(input: $input) {
44
+ success
45
+ }
46
+ }
47
+ `);
48
+
49
+ function ForgotPasswordPage(): React.JSX.Element {
50
+ const [submitted, setSubmitted] = useState(false);
51
+ const { control, handleSubmit } = useForm<FormData>({
52
+ resolver: zodResolver(formSchema),
53
+ reValidateMode: 'onBlur',
54
+ });
55
+ const [requestReset, { loading }] = useMutation(requestPasswordResetMutation);
56
+
57
+ const onSubmit = (data: FormData): void => {
58
+ requestReset({
59
+ variables: {
60
+ input: { email: data.email },
61
+ },
62
+ })
63
+ .then(() => {
64
+ setSubmitted(true);
65
+ })
66
+ .catch((err: unknown) => {
67
+ toast.error(
68
+ logAndFormatError(err, 'Sorry, we could not process your request.'),
69
+ );
70
+ });
71
+ };
72
+
73
+ if (submitted) {
74
+ return (
75
+ <Card>
76
+ <CardHeader>
77
+ <CardTitle>Check your email</CardTitle>
78
+ <CardDescription>
79
+ If an account exists with that email, we&apos;ve sent you a password
80
+ reset link. The link will expire in 1 hour.
81
+ </CardDescription>
82
+ </CardHeader>
83
+ <CardContent>
84
+ <Link to="/auth/login">
85
+ <Button variant="secondary" className="w-full">
86
+ Back to login
87
+ </Button>
88
+ </Link>
89
+ </CardContent>
90
+ </Card>
91
+ );
92
+ }
93
+
94
+ return (
95
+ <Card>
96
+ <CardHeader>
97
+ <CardTitle>Forgot your password?</CardTitle>
98
+ <CardDescription>
99
+ Enter your email address and we&apos;ll send you a link to reset your
100
+ password.
101
+ </CardDescription>
102
+ </CardHeader>
103
+ <CardContent>
104
+ <form onSubmit={handleSubmit(onSubmit)}>
105
+ <div className="flex flex-col gap-6">
106
+ <InputFieldController
107
+ control={control}
108
+ name="email"
109
+ type="email"
110
+ autoComplete="email"
111
+ placeholder="user@example.com"
112
+ />
113
+ <Button type="submit" className="w-full" disabled={loading}>
114
+ Send Reset Link
115
+ </Button>
116
+ </div>
117
+ <div className="mt-4 text-center text-sm">
118
+ Remember your password?{' '}
119
+ <Link to="/auth/login" className="underline underline-offset-4">
120
+ Login
121
+ </Link>
122
+ </div>
123
+ </form>
124
+ </CardContent>
125
+ </Card>
126
+ );
127
+ }
@@ -3,5 +3,5 @@ export declare const Route: import("@tanstack/router-core").Route<import("@tanst
3
3
  return_to: z.ZodOptional<z.ZodString>;
4
4
  }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ search: { return_to }, context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<import("@tanstack/react-router").Register, never, z.ZodObject<{
5
5
  return_to: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
6
+ }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, never, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
7
7
  //# sourceMappingURL=login.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;+PAahB,CAAC"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;sQAahB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-nocheck
3
+ import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
3
4
  import { getApolloErrorCode } from '%apolloErrorImports';
4
5
  import { graphql } from '%graphqlImports';
5
6
  import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
@@ -25,10 +26,9 @@ export const Route = createFileRoute('/auth_/login')({
25
26
  }
26
27
  },
27
28
  });
28
- const PASSWORD_MIN_LENGTH = 8;
29
29
  const formSchema = z.object({
30
30
  email: z.email().transform((value) => value.toLowerCase()),
31
- password: z.string().min(PASSWORD_MIN_LENGTH),
31
+ password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
32
32
  });
33
33
  const loginWithEmailPasswordMutation = graphql(`
34
34
  mutation LoginWithEmailPassword($input: LoginWithEmailPasswordInput!) {
@@ -66,17 +66,12 @@ function LoginPage() {
66
66
  })
67
67
  .catch((err) => {
68
68
  const errorCode = getApolloErrorCode(err, [
69
- 'invalid-email',
70
- 'invalid-password',
69
+ 'invalid-credentials',
71
70
  ]);
72
71
  switch (errorCode) {
73
- case 'invalid-email': {
74
- setFormError('email', { message: 'Email not found' }, { shouldFocus: true });
75
- break;
76
- }
77
- case 'invalid-password': {
72
+ case 'invalid-credentials': {
78
73
  resetField('password');
79
- setFormError('password', { message: 'Password is incorrect' }, { shouldFocus: true });
74
+ setFormError('password', { message: 'Invalid email or password' }, { shouldFocus: true });
80
75
  break;
81
76
  }
82
77
  default: {
@@ -85,6 +80,6 @@ function LoginPage() {
85
80
  }
86
81
  });
87
82
  };
88
- return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Login to your account" }), _jsx(CardDescription, { children: "Enter your email below to login to your account" })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-6", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com" }), _jsx(InputFieldController, { control: control, name: "password", type: "password", autoComplete: "current-password", placeholder: "Password" }), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Login" })] }), _jsxs("div", { className: "mt-4 text-center text-sm", children: ["Don't have an account?", ' ', _jsx(Link, { to: "/auth/register", className: "underline underline-offset-4", children: "Sign up" })] })] }) })] }));
83
+ return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Login to your account" }), _jsx(CardDescription, { children: "Enter your email below to login to your account" })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-6", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com" }), _jsx(InputFieldController, { control: control, name: "password", type: "password", autoComplete: "current-password", placeholder: "Password" }), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Login" })] }), _jsxs("div", { className: "mt-4 flex flex-col gap-4 text-center text-sm", children: [_jsx(Link, { to: "/auth/forgot-password", className: "text-muted-foreground underline-offset-4 hover:underline", children: "Forgot your password?" }), _jsxs("div", { children: ["Don't have an account?", ' ', _jsx(Link, { to: "/auth/register", className: "underline underline-offset-4", children: "Sign up" })] })] })] }) })] }));
89
84
  }
90
85
  //# sourceMappingURL=login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,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AC;oBACF,MAAM;gBACR,CAAC;gBACD,OAAO,CAAC,CAAC,CAAC;oBACR,KAAK,CAAC,KAAK,CACT,iBAAiB,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAC1D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,eACH,MAAC,UAAU,eACT,KAAC,SAAS,wCAAkC,EAC5C,KAAC,eAAe,kEAEE,IACP,EACb,KAAC,WAAW,cACV,gBAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,OAAO,EACpB,WAAW,EAAC,kBAAkB,GAC9B,EACF,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,kBAAkB,EAC/B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,sBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,uCACX,GAAG,EAC/B,KAAC,IAAI,IAAC,EAAE,EAAC,gBAAgB,EAAC,SAAS,EAAC,8BAA8B,wBAE3D,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAA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AAI,IACH,EAAE,EAAC,uBAAuB,EAC1B,SAAS,EAAC,0DAA0D,sCAG/D,EACP,oDAC8B,GAAG,EAC/B,KAAC,IAAI,IACH,EAAE,EAAC,gBAAgB,EACnB,SAAS,EAAC,8BAA8B,wBAGnC,IACH,IACF,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  // @ts-nocheck
2
2
 
3
+ import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
3
4
  import { getApolloErrorCode } from '%apolloErrorImports';
4
5
  import { graphql } from '%graphqlImports';
5
6
  import {
@@ -40,11 +41,9 @@ export const Route = createFileRoute('/auth_/login')({
40
41
  },
41
42
  });
42
43
 
43
- const PASSWORD_MIN_LENGTH = 8;
44
-
45
44
  const formSchema = z.object({
46
45
  email: z.email().transform((value) => value.toLowerCase()),
47
- password: z.string().min(PASSWORD_MIN_LENGTH),
46
+ password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
48
47
  });
49
48
 
50
49
  type FormData = z.infer<typeof formSchema>;
@@ -95,23 +94,14 @@ function LoginPage(): React.JSX.Element {
95
94
  })
96
95
  .catch((err: unknown) => {
97
96
  const errorCode = getApolloErrorCode(err, [
98
- 'invalid-email',
99
- 'invalid-password',
97
+ 'invalid-credentials',
100
98
  ] as const);
101
99
  switch (errorCode) {
102
- case 'invalid-email': {
103
- setFormError(
104
- 'email',
105
- { message: 'Email not found' },
106
- { shouldFocus: true },
107
- );
108
- break;
109
- }
110
- case 'invalid-password': {
100
+ case 'invalid-credentials': {
111
101
  resetField('password');
112
102
  setFormError(
113
103
  'password',
114
- { message: 'Password is incorrect' },
104
+ { message: 'Invalid email or password' },
115
105
  { shouldFocus: true },
116
106
  );
117
107
  break;
@@ -154,11 +144,22 @@ function LoginPage(): React.JSX.Element {
154
144
  Login
155
145
  </Button>
156
146
  </div>
157
- <div className="mt-4 text-center text-sm">
158
- Don&apos;t have an account?{' '}
159
- <Link to="/auth/register" className="underline underline-offset-4">
160
- Sign up
147
+ <div className="mt-4 flex flex-col gap-4 text-center text-sm">
148
+ <Link
149
+ to="/auth/forgot-password"
150
+ className="text-muted-foreground underline-offset-4 hover:underline"
151
+ >
152
+ Forgot your password?
161
153
  </Link>
154
+ <div>
155
+ Don&apos;t have an account?{' '}
156
+ <Link
157
+ to="/auth/register"
158
+ className="underline underline-offset-4"
159
+ >
160
+ Sign up
161
+ </Link>
162
+ </div>
162
163
  </div>
163
164
  </form>
164
165
  </CardContent>
@@ -3,5 +3,5 @@ export declare const Route: import("@tanstack/router-core").Route<import("@tanst
3
3
  return_to: z.ZodOptional<z.ZodString>;
4
4
  }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, ({ search: { return_to }, context: { userId } }: import("@tanstack/react-router").BeforeLoadContextOptions<import("@tanstack/react-router").Register, never, z.ZodObject<{
5
5
  return_to: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
6
+ }, z.core.$strip>, import("@tanstack/react-router").ResolveParams<never>, import("@tanstack/react-router").AnyContext, import("@tanstack/react-router").AnyContext, never, unknown, undefined>) => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
7
7
  //# sourceMappingURL=register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;+PAahB,CAAC"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;sQAahB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-nocheck
3
+ import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
3
4
  import { getApolloErrorCode } from '%apolloErrorImports';
4
5
  import { graphql } from '%graphqlImports';
5
6
  import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
@@ -25,10 +26,9 @@ export const Route = createFileRoute('/auth_/register')({
25
26
  }
26
27
  },
27
28
  });
28
- const PASSWORD_MIN_LENGTH = 8;
29
29
  const formSchema = z.object({
30
30
  email: z.email().transform((value) => value.toLowerCase()),
31
- password: z.string().min(PASSWORD_MIN_LENGTH),
31
+ password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
32
32
  });
33
33
  const registerWithEmailPasswordMutation = graphql(`
34
34
  mutation RegisterWithEmailPassword($input: RegisterWithEmailPasswordInput!) {
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sB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,EAAE,IAAI,EAAE,CACtB,CAAC;oBACF,MAAM;gBACR,CAAC;gBACD,OAAO,CAAC,CAAC,CAAC;oBACR,KAAK,CAAC,KAAK,CACT,iBAAiB,CAAC,GAAG,EAAE,mCAAmC,CAAC,CAC5D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,eACH,MAAC,UAAU,eACT,KAAC,SAAS,2CAAqC,EAC/C,KAAC,eAAe,oEAEE,IACP,EACb,KAAC,WAAW,cACV,gBAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,OAAO,EACpB,WAAW,EAAC,kBAAkB,GAC9B,EACF,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,cAAc,EAC3B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,yBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,yCACd,GAAG,EAC5B,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,8BAA8B,sBAExD,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;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C,aAAa,EAAC,SAAS,EAAC,8BAA8B,sBAExD,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  // @ts-nocheck
2
2
 
3
+ import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
3
4
  import { getApolloErrorCode } from '%apolloErrorImports';
4
5
  import { graphql } from '%graphqlImports';
5
6
  import {
@@ -40,11 +41,9 @@ export const Route = createFileRoute('/auth_/register')({
40
41
  },
41
42
  });
42
43
 
43
- const PASSWORD_MIN_LENGTH = 8;
44
-
45
44
  const formSchema = z.object({
46
45
  email: z.email().transform((value) => value.toLowerCase()),
47
- password: z.string().min(PASSWORD_MIN_LENGTH),
46
+ password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
48
47
  });
49
48
 
50
49
  type FormData = z.infer<typeof formSchema>;