@inversifyjs/http-better-auth 4.10.2 → 5.0.1

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 (270) hide show
  1. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthExpress4Controller.d.ts +1 -1
  2. package/lib/auth/calculations/buildBetterAuthExpress4Controller.d.ts.map +1 -0
  3. package/lib/auth/calculations/buildBetterAuthExpress4Controller.js +30 -0
  4. package/lib/auth/calculations/buildBetterAuthExpress4Controller.js.map +1 -0
  5. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthExpressController.d.ts +1 -1
  6. package/lib/auth/calculations/buildBetterAuthExpressController.d.ts.map +1 -0
  7. package/lib/auth/calculations/buildBetterAuthExpressController.js +30 -0
  8. package/lib/auth/calculations/buildBetterAuthExpressController.js.map +1 -0
  9. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthFastifyController.d.ts +1 -1
  10. package/lib/auth/calculations/buildBetterAuthFastifyController.d.ts.map +1 -0
  11. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthFastifyController.js +12 -15
  12. package/lib/auth/calculations/buildBetterAuthFastifyController.js.map +1 -0
  13. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthHonoController.d.ts +1 -1
  14. package/lib/auth/calculations/buildBetterAuthHonoController.d.ts.map +1 -0
  15. package/lib/auth/calculations/buildBetterAuthHonoController.js +28 -0
  16. package/lib/auth/calculations/buildBetterAuthHonoController.js.map +1 -0
  17. package/lib/auth/calculations/buildBetterAuthMiddleware.d.ts +6 -0
  18. package/lib/auth/calculations/buildBetterAuthMiddleware.d.ts.map +1 -0
  19. package/lib/auth/calculations/buildBetterAuthMiddleware.js +10 -0
  20. package/lib/auth/calculations/buildBetterAuthMiddleware.js.map +1 -0
  21. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthUwebSocketsController.d.ts +1 -1
  22. package/lib/auth/calculations/buildBetterAuthUwebSocketsController.d.ts.map +1 -0
  23. package/lib/{cjs/auth → auth}/calculations/buildBetterAuthUwebSocketsController.js +12 -15
  24. package/lib/auth/calculations/buildBetterAuthUwebSocketsController.js.map +1 -0
  25. package/lib/{cjs/auth → auth}/calculations/buildUserSessionFromExpressRequest.d.ts +3 -3
  26. package/lib/auth/calculations/buildUserSessionFromExpressRequest.d.ts.map +1 -0
  27. package/lib/auth/calculations/buildUserSessionFromExpressRequest.js +10 -0
  28. package/lib/auth/calculations/buildUserSessionFromExpressRequest.js.map +1 -0
  29. package/lib/{cjs/auth → auth}/calculations/buildUserSessionFromFastifyRequest.d.ts +3 -3
  30. package/lib/auth/calculations/buildUserSessionFromFastifyRequest.d.ts.map +1 -0
  31. package/lib/auth/calculations/buildUserSessionFromFastifyRequest.js +10 -0
  32. package/lib/auth/calculations/buildUserSessionFromFastifyRequest.js.map +1 -0
  33. package/lib/auth/calculations/buildUserSessionFromHonoRequest.d.ts +5 -0
  34. package/lib/auth/calculations/buildUserSessionFromHonoRequest.d.ts.map +1 -0
  35. package/lib/auth/calculations/buildUserSessionFromHonoRequest.js +11 -0
  36. package/lib/auth/calculations/buildUserSessionFromHonoRequest.js.map +1 -0
  37. package/lib/{cjs/auth → auth}/calculations/buildUserSessionFromUwebSocketsRequest.d.ts +3 -3
  38. package/lib/auth/calculations/buildUserSessionFromUwebSocketsRequest.d.ts.map +1 -0
  39. package/lib/auth/calculations/buildUserSessionFromUwebSocketsRequest.js +11 -0
  40. package/lib/auth/calculations/buildUserSessionFromUwebSocketsRequest.js.map +1 -0
  41. package/lib/auth/calculations/getBetterAuthFromRequest.d.ts +4 -0
  42. package/lib/auth/calculations/getBetterAuthFromRequest.d.ts.map +1 -0
  43. package/lib/auth/calculations/getBetterAuthFromRequest.js +10 -0
  44. package/lib/auth/calculations/getBetterAuthFromRequest.js.map +1 -0
  45. package/lib/auth/decorators/ExpressUserSession.d.ts.map +1 -0
  46. package/lib/auth/decorators/ExpressUserSession.js +7 -0
  47. package/lib/auth/decorators/ExpressUserSession.js.map +1 -0
  48. package/lib/auth/decorators/FastifyUserSession.d.ts.map +1 -0
  49. package/lib/auth/decorators/FastifyUserSession.js +7 -0
  50. package/lib/auth/decorators/FastifyUserSession.js.map +1 -0
  51. package/lib/auth/decorators/HonoUserSession.d.ts.map +1 -0
  52. package/lib/auth/decorators/HonoUserSession.js +7 -0
  53. package/lib/auth/decorators/HonoUserSession.js.map +1 -0
  54. package/lib/auth/decorators/UwebSocketsUserSession.d.ts.map +1 -0
  55. package/lib/auth/decorators/UwebSocketsUserSession.js +7 -0
  56. package/lib/auth/decorators/UwebSocketsUserSession.js.map +1 -0
  57. package/lib/auth/models/BetterAuth.d.ts +3 -0
  58. package/lib/auth/models/BetterAuth.d.ts.map +1 -0
  59. package/lib/auth/models/BetterAuth.js +2 -0
  60. package/lib/auth/models/BetterAuth.js.map +1 -0
  61. package/lib/auth/models/UserSession.d.ts +6 -0
  62. package/lib/auth/models/UserSession.d.ts.map +1 -0
  63. package/lib/auth/models/UserSession.js +2 -0
  64. package/lib/auth/models/UserSession.js.map +1 -0
  65. package/lib/auth/models/betterAuthMiddlewareServiceIdentifier.d.ts.map +1 -0
  66. package/lib/auth/models/betterAuthMiddlewareServiceIdentifier.js +2 -0
  67. package/lib/auth/models/betterAuthMiddlewareServiceIdentifier.js.map +1 -0
  68. package/lib/auth/models/betterAuthProperty.d.ts.map +1 -0
  69. package/lib/auth/models/betterAuthProperty.js +2 -0
  70. package/lib/auth/models/betterAuthProperty.js.map +1 -0
  71. package/lib/auth/models/betterAuthServiceIdentifier.d.ts.map +1 -0
  72. package/lib/auth/models/betterAuthServiceIdentifier.js +2 -0
  73. package/lib/auth/models/betterAuthServiceIdentifier.js.map +1 -0
  74. package/lib/{cjs/auth → auth}/services/BaseBetterAuthContainerModule.d.ts +3 -3
  75. package/lib/auth/services/BaseBetterAuthContainerModule.d.ts.map +1 -0
  76. package/lib/auth/services/BaseBetterAuthContainerModule.js +28 -0
  77. package/lib/auth/services/BaseBetterAuthContainerModule.js.map +1 -0
  78. package/lib/{cjs/auth → auth}/services/BetterAuthExpress4ContainerModule.d.ts +4 -4
  79. package/lib/auth/services/BetterAuthExpress4ContainerModule.d.ts.map +1 -0
  80. package/lib/auth/services/BetterAuthExpress4ContainerModule.js +11 -0
  81. package/lib/auth/services/BetterAuthExpress4ContainerModule.js.map +1 -0
  82. package/lib/{cjs/auth → auth}/services/BetterAuthExpressContainerModule.d.ts +4 -4
  83. package/lib/auth/services/BetterAuthExpressContainerModule.d.ts.map +1 -0
  84. package/lib/auth/services/BetterAuthExpressContainerModule.js +11 -0
  85. package/lib/auth/services/BetterAuthExpressContainerModule.js.map +1 -0
  86. package/lib/{cjs/auth → auth}/services/BetterAuthFastifyContainerModule.d.ts +4 -4
  87. package/lib/auth/services/BetterAuthFastifyContainerModule.d.ts.map +1 -0
  88. package/lib/auth/services/BetterAuthFastifyContainerModule.js +11 -0
  89. package/lib/auth/services/BetterAuthFastifyContainerModule.js.map +1 -0
  90. package/lib/{cjs/auth → auth}/services/BetterAuthHonoContainerModule.d.ts +4 -4
  91. package/lib/auth/services/BetterAuthHonoContainerModule.d.ts.map +1 -0
  92. package/lib/auth/services/BetterAuthHonoContainerModule.js +11 -0
  93. package/lib/auth/services/BetterAuthHonoContainerModule.js.map +1 -0
  94. package/lib/{cjs/auth → auth}/services/BetterAuthUwebSocketsContainerModule.d.ts +4 -4
  95. package/lib/auth/services/BetterAuthUwebSocketsContainerModule.d.ts.map +1 -0
  96. package/lib/auth/services/BetterAuthUwebSocketsContainerModule.js +11 -0
  97. package/lib/auth/services/BetterAuthUwebSocketsContainerModule.js.map +1 -0
  98. package/lib/index.d.ts +13 -0
  99. package/lib/index.d.ts.map +1 -0
  100. package/lib/{cjs/index.d.ts → index.js} +11 -13
  101. package/lib/index.js.map +1 -0
  102. package/lib/server/adapter/express/actions/buildExpressServer.d.ts +4 -0
  103. package/lib/server/adapter/express/actions/buildExpressServer.d.ts.map +1 -0
  104. package/lib/server/adapter/express/actions/buildExpressServer.js +36 -0
  105. package/lib/server/adapter/express/actions/buildExpressServer.js.map +1 -0
  106. package/lib/server/adapter/express4/actions/buildExpress4Server.d.ts +4 -0
  107. package/lib/server/adapter/express4/actions/buildExpress4Server.d.ts.map +1 -0
  108. package/lib/server/adapter/express4/actions/buildExpress4Server.js +36 -0
  109. package/lib/server/adapter/express4/actions/buildExpress4Server.js.map +1 -0
  110. package/lib/server/adapter/fastify/actions/buildFastifyServer.d.ts +4 -0
  111. package/lib/server/adapter/fastify/actions/buildFastifyServer.d.ts.map +1 -0
  112. package/lib/server/adapter/fastify/actions/buildFastifyServer.js +30 -0
  113. package/lib/server/adapter/fastify/actions/buildFastifyServer.js.map +1 -0
  114. package/lib/server/adapter/hono/actions/buildHonoServer.d.ts +4 -0
  115. package/lib/server/adapter/hono/actions/buildHonoServer.d.ts.map +1 -0
  116. package/lib/server/adapter/hono/actions/buildHonoServer.js +32 -0
  117. package/lib/server/adapter/hono/actions/buildHonoServer.js.map +1 -0
  118. package/lib/server/adapter/uwebsockets/actions/buildUwebSocketsJsServer.d.ts +4 -0
  119. package/lib/server/adapter/uwebsockets/actions/buildUwebSocketsJsServer.d.ts.map +1 -0
  120. package/lib/server/adapter/uwebsockets/actions/buildUwebSocketsJsServer.js +23 -0
  121. package/lib/server/adapter/uwebsockets/actions/buildUwebSocketsJsServer.js.map +1 -0
  122. package/lib/server/models/Server.d.ts +6 -0
  123. package/lib/server/models/Server.d.ts.map +1 -0
  124. package/lib/server/models/Server.js +2 -0
  125. package/lib/server/models/Server.js.map +1 -0
  126. package/lib/test/actions/createDirectory.d.ts +2 -0
  127. package/lib/test/actions/createDirectory.d.ts.map +1 -0
  128. package/lib/test/actions/createDirectory.js +10 -0
  129. package/lib/test/actions/createDirectory.js.map +1 -0
  130. package/lib/test/actions/generateBetterAuthMigrations.d.ts +3 -0
  131. package/lib/test/actions/generateBetterAuthMigrations.d.ts.map +1 -0
  132. package/lib/test/actions/generateBetterAuthMigrations.js +7 -0
  133. package/lib/test/actions/generateBetterAuthMigrations.js.map +1 -0
  134. package/lib/test/actions/removeFileIfExists.d.ts +2 -0
  135. package/lib/test/actions/removeFileIfExists.d.ts.map +1 -0
  136. package/lib/test/actions/removeFileIfExists.js +11 -0
  137. package/lib/test/actions/removeFileIfExists.js.map +1 -0
  138. package/package.json +25 -32
  139. package/CHANGELOG.md +0 -174
  140. package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.d.ts.map +0 -1
  141. package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.js +0 -33
  142. package/lib/cjs/auth/calculations/buildBetterAuthExpress4Controller.js.map +0 -1
  143. package/lib/cjs/auth/calculations/buildBetterAuthExpressController.d.ts.map +0 -1
  144. package/lib/cjs/auth/calculations/buildBetterAuthExpressController.js +0 -33
  145. package/lib/cjs/auth/calculations/buildBetterAuthExpressController.js.map +0 -1
  146. package/lib/cjs/auth/calculations/buildBetterAuthFastifyController.d.ts.map +0 -1
  147. package/lib/cjs/auth/calculations/buildBetterAuthFastifyController.js.map +0 -1
  148. package/lib/cjs/auth/calculations/buildBetterAuthHonoController.d.ts.map +0 -1
  149. package/lib/cjs/auth/calculations/buildBetterAuthHonoController.js +0 -31
  150. package/lib/cjs/auth/calculations/buildBetterAuthHonoController.js.map +0 -1
  151. package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.d.ts +0 -6
  152. package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.d.ts.map +0 -1
  153. package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.js +0 -13
  154. package/lib/cjs/auth/calculations/buildBetterAuthMiddleware.js.map +0 -1
  155. package/lib/cjs/auth/calculations/buildBetterAuthUwebSocketsController.d.ts.map +0 -1
  156. package/lib/cjs/auth/calculations/buildBetterAuthUwebSocketsController.js.map +0 -1
  157. package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.d.ts.map +0 -1
  158. package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.js +0 -13
  159. package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.js.map +0 -1
  160. package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.spec.d.ts +0 -2
  161. package/lib/cjs/auth/calculations/buildUserSessionFromExpressRequest.spec.d.ts.map +0 -1
  162. package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.d.ts.map +0 -1
  163. package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.js +0 -13
  164. package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.js.map +0 -1
  165. package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.spec.d.ts +0 -2
  166. package/lib/cjs/auth/calculations/buildUserSessionFromFastifyRequest.spec.d.ts.map +0 -1
  167. package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.d.ts +0 -5
  168. package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.d.ts.map +0 -1
  169. package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.js +0 -14
  170. package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.js.map +0 -1
  171. package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.spec.d.ts +0 -2
  172. package/lib/cjs/auth/calculations/buildUserSessionFromHonoRequest.spec.d.ts.map +0 -1
  173. package/lib/cjs/auth/calculations/buildUserSessionFromUwebSocketsRequest.d.ts.map +0 -1
  174. package/lib/cjs/auth/calculations/buildUserSessionFromUwebSocketsRequest.js +0 -14
  175. package/lib/cjs/auth/calculations/buildUserSessionFromUwebSocketsRequest.js.map +0 -1
  176. package/lib/cjs/auth/calculations/buildUserSessionFromUwebSocketsRequest.spec.d.ts +0 -2
  177. package/lib/cjs/auth/calculations/buildUserSessionFromUwebSocketsRequest.spec.d.ts.map +0 -1
  178. package/lib/cjs/auth/calculations/getBetterAuthFromRequest.d.ts +0 -4
  179. package/lib/cjs/auth/calculations/getBetterAuthFromRequest.d.ts.map +0 -1
  180. package/lib/cjs/auth/calculations/getBetterAuthFromRequest.js +0 -13
  181. package/lib/cjs/auth/calculations/getBetterAuthFromRequest.js.map +0 -1
  182. package/lib/cjs/auth/calculations/getBetterAuthFromRequest.spec.d.ts +0 -2
  183. package/lib/cjs/auth/calculations/getBetterAuthFromRequest.spec.d.ts.map +0 -1
  184. package/lib/cjs/auth/decorators/ExpressUserSession.d.ts.map +0 -1
  185. package/lib/cjs/auth/decorators/ExpressUserSession.int.spec.d.ts +0 -2
  186. package/lib/cjs/auth/decorators/ExpressUserSession.int.spec.d.ts.map +0 -1
  187. package/lib/cjs/auth/decorators/ExpressUserSession.js +0 -10
  188. package/lib/cjs/auth/decorators/ExpressUserSession.js.map +0 -1
  189. package/lib/cjs/auth/decorators/ExpressUserSession.spec.d.ts +0 -2
  190. package/lib/cjs/auth/decorators/ExpressUserSession.spec.d.ts.map +0 -1
  191. package/lib/cjs/auth/decorators/FastifyUserSession.d.ts.map +0 -1
  192. package/lib/cjs/auth/decorators/FastifyUserSession.int.spec.d.ts +0 -2
  193. package/lib/cjs/auth/decorators/FastifyUserSession.int.spec.d.ts.map +0 -1
  194. package/lib/cjs/auth/decorators/FastifyUserSession.js +0 -10
  195. package/lib/cjs/auth/decorators/FastifyUserSession.js.map +0 -1
  196. package/lib/cjs/auth/decorators/FastifyUserSession.spec.d.ts +0 -2
  197. package/lib/cjs/auth/decorators/FastifyUserSession.spec.d.ts.map +0 -1
  198. package/lib/cjs/auth/decorators/HonoUserSession.d.ts.map +0 -1
  199. package/lib/cjs/auth/decorators/HonoUserSession.int.spec.d.ts +0 -2
  200. package/lib/cjs/auth/decorators/HonoUserSession.int.spec.d.ts.map +0 -1
  201. package/lib/cjs/auth/decorators/HonoUserSession.js +0 -10
  202. package/lib/cjs/auth/decorators/HonoUserSession.js.map +0 -1
  203. package/lib/cjs/auth/decorators/HonoUserSession.spec.d.ts +0 -2
  204. package/lib/cjs/auth/decorators/HonoUserSession.spec.d.ts.map +0 -1
  205. package/lib/cjs/auth/decorators/UwebSocketsUserSession.d.ts.map +0 -1
  206. package/lib/cjs/auth/decorators/UwebSocketsUserSession.js +0 -10
  207. package/lib/cjs/auth/decorators/UwebSocketsUserSession.js.map +0 -1
  208. package/lib/cjs/auth/decorators/UwebSocketsUserSession.spec.d.ts +0 -2
  209. package/lib/cjs/auth/decorators/UwebSocketsUserSession.spec.d.ts.map +0 -1
  210. package/lib/cjs/auth/models/BetterAuth.d.ts +0 -3
  211. package/lib/cjs/auth/models/BetterAuth.d.ts.map +0 -1
  212. package/lib/cjs/auth/models/BetterAuth.js +0 -3
  213. package/lib/cjs/auth/models/BetterAuth.js.map +0 -1
  214. package/lib/cjs/auth/models/UserSession.d.ts +0 -6
  215. package/lib/cjs/auth/models/UserSession.d.ts.map +0 -1
  216. package/lib/cjs/auth/models/UserSession.js +0 -3
  217. package/lib/cjs/auth/models/UserSession.js.map +0 -1
  218. package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.d.ts.map +0 -1
  219. package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.js +0 -5
  220. package/lib/cjs/auth/models/betterAuthMiddlewareServiceIdentifier.js.map +0 -1
  221. package/lib/cjs/auth/models/betterAuthProperty.d.ts.map +0 -1
  222. package/lib/cjs/auth/models/betterAuthProperty.js +0 -5
  223. package/lib/cjs/auth/models/betterAuthProperty.js.map +0 -1
  224. package/lib/cjs/auth/models/betterAuthServiceIdentifier.d.ts.map +0 -1
  225. package/lib/cjs/auth/models/betterAuthServiceIdentifier.js +0 -5
  226. package/lib/cjs/auth/models/betterAuthServiceIdentifier.js.map +0 -1
  227. package/lib/cjs/auth/services/BaseBetterAuthContainerModule.d.ts.map +0 -1
  228. package/lib/cjs/auth/services/BaseBetterAuthContainerModule.js +0 -32
  229. package/lib/cjs/auth/services/BaseBetterAuthContainerModule.js.map +0 -1
  230. package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.d.ts.map +0 -1
  231. package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.int.spec.d.ts +0 -2
  232. package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.int.spec.d.ts.map +0 -1
  233. package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.js +0 -15
  234. package/lib/cjs/auth/services/BetterAuthExpress4ContainerModule.js.map +0 -1
  235. package/lib/cjs/auth/services/BetterAuthExpressContainerModule.d.ts.map +0 -1
  236. package/lib/cjs/auth/services/BetterAuthExpressContainerModule.int.spec.d.ts +0 -2
  237. package/lib/cjs/auth/services/BetterAuthExpressContainerModule.int.spec.d.ts.map +0 -1
  238. package/lib/cjs/auth/services/BetterAuthExpressContainerModule.js +0 -15
  239. package/lib/cjs/auth/services/BetterAuthExpressContainerModule.js.map +0 -1
  240. package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.d.ts.map +0 -1
  241. package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.int.spec.d.ts +0 -2
  242. package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.int.spec.d.ts.map +0 -1
  243. package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.js +0 -15
  244. package/lib/cjs/auth/services/BetterAuthFastifyContainerModule.js.map +0 -1
  245. package/lib/cjs/auth/services/BetterAuthHonoContainerModule.d.ts.map +0 -1
  246. package/lib/cjs/auth/services/BetterAuthHonoContainerModule.int.spec.d.ts +0 -2
  247. package/lib/cjs/auth/services/BetterAuthHonoContainerModule.int.spec.d.ts.map +0 -1
  248. package/lib/cjs/auth/services/BetterAuthHonoContainerModule.js +0 -15
  249. package/lib/cjs/auth/services/BetterAuthHonoContainerModule.js.map +0 -1
  250. package/lib/cjs/auth/services/BetterAuthUwebSocketsContainerModule.d.ts.map +0 -1
  251. package/lib/cjs/auth/services/BetterAuthUwebSocketsContainerModule.int.spec.d.ts +0 -2
  252. package/lib/cjs/auth/services/BetterAuthUwebSocketsContainerModule.int.spec.d.ts.map +0 -1
  253. package/lib/cjs/auth/services/BetterAuthUwebSocketsContainerModule.js +0 -15
  254. package/lib/cjs/auth/services/BetterAuthUwebSocketsContainerModule.js.map +0 -1
  255. package/lib/cjs/index.d.ts.map +0 -1
  256. package/lib/cjs/index.js +0 -24
  257. package/lib/cjs/index.js.map +0 -1
  258. package/lib/cjs/package.json +0 -3
  259. package/lib/esm/index.d.ts +0 -56
  260. package/lib/esm/index.d.ts.map +0 -1
  261. package/lib/esm/index.js +0 -2
  262. package/lib/esm/index.js.map +0 -1
  263. package/lib/esm/package.json +0 -3
  264. /package/lib/{cjs/auth → auth}/decorators/ExpressUserSession.d.ts +0 -0
  265. /package/lib/{cjs/auth → auth}/decorators/FastifyUserSession.d.ts +0 -0
  266. /package/lib/{cjs/auth → auth}/decorators/HonoUserSession.d.ts +0 -0
  267. /package/lib/{cjs/auth → auth}/decorators/UwebSocketsUserSession.d.ts +0 -0
  268. /package/lib/{cjs/auth → auth}/models/betterAuthMiddlewareServiceIdentifier.d.ts +0 -0
  269. /package/lib/{cjs/auth → auth}/models/betterAuthProperty.d.ts +0 -0
  270. /package/lib/{cjs/auth → auth}/models/betterAuthServiceIdentifier.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=getBetterAuthFromRequest.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBetterAuthFromRequest.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/calculations/getBetterAuthFromRequest.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressUserSession.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/ExpressUserSession.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,IAAI,kBAAkB,CAEvD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ExpressUserSession.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressUserSession.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/ExpressUserSession.int.spec.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExpressUserSession = ExpressUserSession;
4
- const http_core_1 = require("@inversifyjs/http-core");
5
- const buildUserSessionFromExpressRequest_1 = require("../calculations/buildUserSessionFromExpressRequest");
6
- // eslint-disable-next-line @typescript-eslint/naming-convention
7
- function ExpressUserSession() {
8
- return (0, http_core_1.createCustomParameterDecorator)(buildUserSessionFromExpressRequest_1.buildUserSessionFromExpressRequest);
9
- }
10
- //# sourceMappingURL=ExpressUserSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressUserSession.js","sourceRoot":"","sources":["../../../../src/auth/decorators/ExpressUserSession.ts"],"names":[],"mappings":";;AAKA,gDAEC;AAPD,sDAAwE;AAExE,2GAAwG;AAExG,gEAAgE;AAChE,SAAgB,kBAAkB;IAChC,OAAO,IAAA,0CAA8B,EAAC,uEAAkC,CAAC,CAAC;AAC5E,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ExpressUserSession.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressUserSession.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/ExpressUserSession.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FastifyUserSession.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/FastifyUserSession.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,IAAI,kBAAkB,CAEvD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FastifyUserSession.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FastifyUserSession.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/FastifyUserSession.int.spec.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FastifyUserSession = FastifyUserSession;
4
- const http_core_1 = require("@inversifyjs/http-core");
5
- const buildUserSessionFromFastifyRequest_1 = require("../calculations/buildUserSessionFromFastifyRequest");
6
- // eslint-disable-next-line @typescript-eslint/naming-convention
7
- function FastifyUserSession() {
8
- return (0, http_core_1.createCustomParameterDecorator)(buildUserSessionFromFastifyRequest_1.buildUserSessionFromFastifyRequest);
9
- }
10
- //# sourceMappingURL=FastifyUserSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FastifyUserSession.js","sourceRoot":"","sources":["../../../../src/auth/decorators/FastifyUserSession.ts"],"names":[],"mappings":";;AAKA,gDAEC;AAPD,sDAAwE;AAExE,2GAAwG;AAExG,gEAAgE;AAChE,SAAgB,kBAAkB;IAChC,OAAO,IAAA,0CAA8B,EAAC,uEAAkC,CAAC,CAAC;AAC5E,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FastifyUserSession.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FastifyUserSession.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/FastifyUserSession.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HonoUserSession.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/HonoUserSession.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,IAAI,kBAAkB,CAEpD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=HonoUserSession.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HonoUserSession.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/HonoUserSession.int.spec.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HonoUserSession = HonoUserSession;
4
- const http_core_1 = require("@inversifyjs/http-core");
5
- const buildUserSessionFromHonoRequest_1 = require("../calculations/buildUserSessionFromHonoRequest");
6
- // eslint-disable-next-line @typescript-eslint/naming-convention
7
- function HonoUserSession() {
8
- return (0, http_core_1.createCustomParameterDecorator)(buildUserSessionFromHonoRequest_1.buildUserSessionFromHonoRequest);
9
- }
10
- //# sourceMappingURL=HonoUserSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HonoUserSession.js","sourceRoot":"","sources":["../../../../src/auth/decorators/HonoUserSession.ts"],"names":[],"mappings":";;AAKA,0CAEC;AAPD,sDAAwE;AAExE,qGAAkG;AAElG,gEAAgE;AAChE,SAAgB,eAAe;IAC7B,OAAO,IAAA,0CAA8B,EAAC,iEAA+B,CAAC,CAAC;AACzE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=HonoUserSession.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HonoUserSession.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/HonoUserSession.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"UwebSocketsUserSession.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/UwebSocketsUserSession.ts"],"names":[],"mappings":"AAKA,wBAAgB,sBAAsB,IAAI,kBAAkB,CAE3D"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UwebSocketsUserSession = UwebSocketsUserSession;
4
- const http_core_1 = require("@inversifyjs/http-core");
5
- const buildUserSessionFromUwebSocketsRequest_1 = require("../calculations/buildUserSessionFromUwebSocketsRequest");
6
- // eslint-disable-next-line @typescript-eslint/naming-convention
7
- function UwebSocketsUserSession() {
8
- return (0, http_core_1.createCustomParameterDecorator)(buildUserSessionFromUwebSocketsRequest_1.buildUserSessionFromUwebSocketsRequest);
9
- }
10
- //# sourceMappingURL=UwebSocketsUserSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UwebSocketsUserSession.js","sourceRoot":"","sources":["../../../../src/auth/decorators/UwebSocketsUserSession.ts"],"names":[],"mappings":";;AAKA,wDAEC;AAPD,sDAAwE;AAExE,mHAAgH;AAEhH,gEAAgE;AAChE,SAAgB,sBAAsB;IACpC,OAAO,IAAA,0CAA8B,EAAC,+EAAsC,CAAC,CAAC;AAChF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=UwebSocketsUserSession.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UwebSocketsUserSession.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/decorators/UwebSocketsUserSession.spec.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { betterAuth, BetterAuthOptions } from 'better-auth';
2
- export type BetterAuth<TOptions extends BetterAuthOptions> = ReturnType<typeof betterAuth<TOptions>>;
3
- //# sourceMappingURL=BetterAuth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuth.d.ts","sourceRoot":"","sources":["../../../../src/auth/models/BetterAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE5D,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,iBAAiB,IAAI,UAAU,CACrE,OAAO,UAAU,CAAC,QAAQ,CAAC,CAC5B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BetterAuth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuth.js","sourceRoot":"","sources":["../../../../src/auth/models/BetterAuth.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { BetterAuthOptions, InferSession, InferUser } from 'better-auth';
2
- export interface UserSession<TOptions extends BetterAuthOptions> {
3
- session: InferSession<TOptions>;
4
- user: InferUser<TOptions>;
5
- }
6
- //# sourceMappingURL=UserSession.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSession.d.ts","sourceRoot":"","sources":["../../../../src/auth/models/UserSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,WAAW,CAAC,QAAQ,SAAS,iBAAiB;IAC7D,OAAO,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC3B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=UserSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSession.js","sourceRoot":"","sources":["../../../../src/auth/models/UserSession.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"betterAuthMiddlewareServiceIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/auth/models/betterAuthMiddlewareServiceIdentifier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qCAAqC,EAAE,OAAO,MAE1D,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.betterAuthMiddlewareServiceIdentifier = void 0;
4
- exports.betterAuthMiddlewareServiceIdentifier = Symbol.for('@inversifyjs/better-auth/betterAuthMiddleware');
5
- //# sourceMappingURL=betterAuthMiddlewareServiceIdentifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"betterAuthMiddlewareServiceIdentifier.js","sourceRoot":"","sources":["../../../../src/auth/models/betterAuthMiddlewareServiceIdentifier.ts"],"names":[],"mappings":";;;AAAa,QAAA,qCAAqC,GAAkB,MAAM,CAAC,GAAG,CAC5E,+CAA+C,CAChD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"betterAuthProperty.d.ts","sourceRoot":"","sources":["../../../../src/auth/models/betterAuthProperty.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAEhC,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.betterAuthProperty = void 0;
4
- exports.betterAuthProperty = Symbol.for('@inversifyjs/better-auth/BetterAuthProperty');
5
- //# sourceMappingURL=betterAuthProperty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"betterAuthProperty.js","sourceRoot":"","sources":["../../../../src/auth/models/betterAuthProperty.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAW,MAAM,CAAC,GAAG,CAClD,6CAA6C,CAC9C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"betterAuthServiceIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/auth/models/betterAuthServiceIdentifier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,EAAE,OAAO,MAEhD,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.betterAuthServiceIdentifier = void 0;
4
- exports.betterAuthServiceIdentifier = Symbol.for('@inversifyjs/better-auth/betterAuth');
5
- //# sourceMappingURL=betterAuthServiceIdentifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"betterAuthServiceIdentifier.js","sourceRoot":"","sources":["../../../../src/auth/models/betterAuthServiceIdentifier.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAkB,MAAM,CAAC,GAAG,CAClE,qCAAqC,CACtC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseBetterAuthContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BaseBetterAuthContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,eAAe,EAEf,OAAO,EACP,0BAA0B,EAC3B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIlD,KAAK,+BAA+B,CAAC,KAAK,SAAS,OAAO,EAAE,IAAI;KAC7D,CAAC,IAAI,MAAM,KAAK,CAAC,CAAC,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;CAC3D,CAAC;AAEF,8BAAsB,6BAA6B,CACjD,QAAQ,SAAS,iBAAiB,EAClC,QAAQ,SAAS,CAEf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CACzD,SAAQ,eAAe;;gBAErB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,+BAA+B,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,EAC7D,SAAS,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC;IAsDrE,SAAS,CAAC,QAAQ,CAAC,+BAA+B,CAChD,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;CACpB"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseBetterAuthContainerModule = void 0;
4
- const inversify_1 = require("inversify");
5
- const buildBetterAuthMiddleware_1 = require("../calculations/buildBetterAuthMiddleware");
6
- const betterAuthMiddlewareServiceIdentifier_1 = require("../models/betterAuthMiddlewareServiceIdentifier");
7
- const betterAuthServiceIdentifier_1 = require("../models/betterAuthServiceIdentifier");
8
- class BaseBetterAuthContainerModule extends inversify_1.ContainerModule {
9
- constructor(basePath, factory, params, transform) {
10
- super((containerModuleOptions) => {
11
- this.#provide(basePath, factory, params, containerModuleOptions, transform);
12
- });
13
- }
14
- #provide(basePath, factory, params, containerModuleOptions, transform) {
15
- containerModuleOptions
16
- .bind(betterAuthServiceIdentifier_1.betterAuthServiceIdentifier)
17
- .toResolvedValue(factory, params)
18
- .inSingletonScope();
19
- containerModuleOptions
20
- .bind(betterAuthMiddlewareServiceIdentifier_1.betterAuthMiddlewareServiceIdentifier)
21
- .toResolvedValue((betterAuth) => new ((0, buildBetterAuthMiddleware_1.buildBetterAuthMiddleware)(betterAuth))(), [betterAuthServiceIdentifier_1.betterAuthServiceIdentifier])
22
- .inSingletonScope();
23
- const betterAuthControllerServiceIdentifier = Symbol('@inversifyjs/better-auth/betterAuthController');
24
- const controllerClass = this._buildBetterAuthControllerClass(basePath, betterAuthControllerServiceIdentifier);
25
- containerModuleOptions
26
- .bind(betterAuthControllerServiceIdentifier)
27
- .to(transform === undefined ? controllerClass : transform(controllerClass))
28
- .inSingletonScope();
29
- }
30
- }
31
- exports.BaseBetterAuthContainerModule = BaseBetterAuthContainerModule;
32
- //# sourceMappingURL=BaseBetterAuthContainerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseBetterAuthContainerModule.js","sourceRoot":"","sources":["../../../../src/auth/services/BaseBetterAuthContainerModule.ts"],"names":[],"mappings":";;;AACA,yCAKmB;AAEnB,yFAAsF;AAEtF,2GAAwG;AACxG,uFAAoF;AAMpF,MAAsB,6BAMpB,SAAQ,2BAAe;IACvB,YACE,QAAgB,EAChB,OAAiB,EACjB,MAA6D,EAC7D,SAAmE;QAEnE,KAAK,CAAC,CAAC,sBAAkD,EAAE,EAAE;YAC3D,IAAI,CAAC,QAAQ,CACX,QAAQ,EACR,OAAO,EACP,MAAM,EACN,sBAAsB,EACtB,SAAS,CACV,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CACN,QAAgB,EAChB,OAAiB,EACjB,MAA6D,EAC7D,sBAAkD,EAClD,SAEa;QAEb,sBAAsB;aACnB,IAAI,CAAC,yDAA2B,CAAC;aACjC,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC;aAChC,gBAAgB,EAAE,CAAC;QAEtB,sBAAsB;aACnB,IAAI,CAAC,6EAAqC,CAAC;aAC3C,eAAe,CACd,CAAC,UAAgC,EAAE,EAAE,CACnC,IAAI,CAAC,IAAA,qDAAyB,EAAC,UAAU,CAAC,CAAC,EAAE,EAC/C,CAAC,yDAA2B,CAAC,CAC9B;aACA,gBAAgB,EAAE,CAAC;QAEtB,MAAM,qCAAqC,GAAkB,MAAM,CACjE,+CAA+C,CAChD,CAAC;QAEF,MAAM,eAAe,GACnB,IAAI,CAAC,+BAA+B,CAClC,QAAQ,EACR,qCAAqC,CACtC,CAAC;QAEJ,sBAAsB;aACnB,IAAI,CAAC,qCAAqC,CAAC;aAC3C,EAAE,CACD,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CACvE;aACA,gBAAgB,EAAE,CAAC;IACxB,CAAC;CAMF;AArED,sEAqEC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthExpress4ContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthExpress4ContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,qBAAa,iCAAiC,CAC5C,QAAQ,SAAS,iBAAiB,EAClC,QAAQ,SAAS,CAEf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CACzD,SAAQ,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,CAAC;WAC3C,WAAW,CAAC,QAAQ,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,EAChC,SAAS,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAClE,iCAAiC,CAAC,QAAQ,EAAE,MAAM,UAAU,CAAC,QAAQ,CAAC,CAAC;cASvD,+BAA+B,CAChD,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;CAGpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BetterAuthExpress4ContainerModule.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthExpress4ContainerModule.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthExpress4ContainerModule.int.spec.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BetterAuthExpress4ContainerModule = void 0;
4
- const buildBetterAuthExpress4Controller_1 = require("../calculations/buildBetterAuthExpress4Controller");
5
- const BaseBetterAuthContainerModule_1 = require("./BaseBetterAuthContainerModule");
6
- class BetterAuthExpress4ContainerModule extends BaseBetterAuthContainerModule_1.BaseBetterAuthContainerModule {
7
- static fromOptions(basePath, betterAuth, transform) {
8
- return new BetterAuthExpress4ContainerModule(basePath, () => betterAuth, [], transform);
9
- }
10
- _buildBetterAuthControllerClass(basePath, serviceIdentifier) {
11
- return (0, buildBetterAuthExpress4Controller_1.buildBetterAuthExpress4Controller)(basePath, serviceIdentifier);
12
- }
13
- }
14
- exports.BetterAuthExpress4ContainerModule = BetterAuthExpress4ContainerModule;
15
- //# sourceMappingURL=BetterAuthExpress4ContainerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthExpress4ContainerModule.js","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthExpress4ContainerModule.ts"],"names":[],"mappings":";;;AAGA,yGAAsG;AAEtG,mFAAgF;AAEhF,MAAa,iCAMX,SAAQ,6DAAiD;IAClD,MAAM,CAAC,WAAW,CACvB,QAAgB,EAChB,UAAgC,EAChC,SAAmE;QAEnE,OAAO,IAAI,iCAAiC,CAC1C,QAAQ,EACR,GAAG,EAAE,CAAC,UAAU,EAChB,EAAE,EACF,SAAS,CACV,CAAC;IACJ,CAAC;IAEkB,+BAA+B,CAChD,QAAgB,EAChB,iBAAyB;QAEzB,OAAO,IAAA,qEAAiC,EAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACxE,CAAC;CACF;AA1BD,8EA0BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthExpressContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthExpressContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,qBAAa,gCAAgC,CAC3C,QAAQ,SAAS,iBAAiB,EAClC,QAAQ,SAAS,CAEf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CACzD,SAAQ,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,CAAC;WAC3C,WAAW,CAAC,QAAQ,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,EAChC,SAAS,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAClE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,UAAU,CAAC,QAAQ,CAAC,CAAC;cAStD,+BAA+B,CAChD,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;CAGpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BetterAuthExpressContainerModule.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthExpressContainerModule.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthExpressContainerModule.int.spec.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BetterAuthExpressContainerModule = void 0;
4
- const buildBetterAuthExpressController_1 = require("../calculations/buildBetterAuthExpressController");
5
- const BaseBetterAuthContainerModule_1 = require("./BaseBetterAuthContainerModule");
6
- class BetterAuthExpressContainerModule extends BaseBetterAuthContainerModule_1.BaseBetterAuthContainerModule {
7
- static fromOptions(basePath, betterAuth, transform) {
8
- return new BetterAuthExpressContainerModule(basePath, () => betterAuth, [], transform);
9
- }
10
- _buildBetterAuthControllerClass(basePath, serviceIdentifier) {
11
- return (0, buildBetterAuthExpressController_1.buildBetterAuthExpressController)(basePath, serviceIdentifier);
12
- }
13
- }
14
- exports.BetterAuthExpressContainerModule = BetterAuthExpressContainerModule;
15
- //# sourceMappingURL=BetterAuthExpressContainerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthExpressContainerModule.js","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthExpressContainerModule.ts"],"names":[],"mappings":";;;AAGA,uGAAoG;AAEpG,mFAAgF;AAEhF,MAAa,gCAMX,SAAQ,6DAAiD;IAClD,MAAM,CAAC,WAAW,CACvB,QAAgB,EAChB,UAAgC,EAChC,SAAmE;QAEnE,OAAO,IAAI,gCAAgC,CACzC,QAAQ,EACR,GAAG,EAAE,CAAC,UAAU,EAChB,EAAE,EACF,SAAS,CACV,CAAC;IACJ,CAAC;IAEkB,+BAA+B,CAChD,QAAgB,EAChB,iBAAyB;QAEzB,OAAO,IAAA,mEAAgC,EAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACvE,CAAC;CACF;AA1BD,4EA0BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthFastifyContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthFastifyContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,qBAAa,gCAAgC,CAC3C,QAAQ,SAAS,iBAAiB,EAClC,QAAQ,SAAS,CAEf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CACzD,SAAQ,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,CAAC;WAC3C,WAAW,CAAC,QAAQ,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,EAChC,SAAS,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAClE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,UAAU,CAAC,QAAQ,CAAC,CAAC;cAStD,+BAA+B,CAChD,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;CAGpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BetterAuthFastifyContainerModule.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthFastifyContainerModule.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthFastifyContainerModule.int.spec.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BetterAuthFastifyContainerModule = void 0;
4
- const buildBetterAuthFastifyController_1 = require("../calculations/buildBetterAuthFastifyController");
5
- const BaseBetterAuthContainerModule_1 = require("./BaseBetterAuthContainerModule");
6
- class BetterAuthFastifyContainerModule extends BaseBetterAuthContainerModule_1.BaseBetterAuthContainerModule {
7
- static fromOptions(basePath, betterAuth, transform) {
8
- return new BetterAuthFastifyContainerModule(basePath, () => betterAuth, [], transform);
9
- }
10
- _buildBetterAuthControllerClass(basePath, serviceIdentifier) {
11
- return (0, buildBetterAuthFastifyController_1.buildBetterAuthFastifyController)(basePath, serviceIdentifier);
12
- }
13
- }
14
- exports.BetterAuthFastifyContainerModule = BetterAuthFastifyContainerModule;
15
- //# sourceMappingURL=BetterAuthFastifyContainerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthFastifyContainerModule.js","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthFastifyContainerModule.ts"],"names":[],"mappings":";;;AAGA,uGAAoG;AAEpG,mFAAgF;AAEhF,MAAa,gCAMX,SAAQ,6DAAiD;IAClD,MAAM,CAAC,WAAW,CACvB,QAAgB,EAChB,UAAgC,EAChC,SAAmE;QAEnE,OAAO,IAAI,gCAAgC,CACzC,QAAQ,EACR,GAAG,EAAE,CAAC,UAAU,EAChB,EAAE,EACF,SAAS,CACV,CAAC;IACJ,CAAC;IAEkB,+BAA+B,CAChD,QAAgB,EAChB,iBAAyB;QAEzB,OAAO,IAAA,mEAAgC,EAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACvE,CAAC;CACF;AA1BD,4EA0BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthHonoContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthHonoContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,qBAAa,6BAA6B,CACxC,QAAQ,SAAS,iBAAiB,EAClC,QAAQ,SAAS,CAEf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CACzD,SAAQ,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,CAAC;WAC3C,WAAW,CAAC,QAAQ,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,EAChC,SAAS,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAClE,6BAA6B,CAAC,QAAQ,EAAE,MAAM,UAAU,CAAC,QAAQ,CAAC,CAAC;cASnD,+BAA+B,CAChD,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;CAGpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BetterAuthHonoContainerModule.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthHonoContainerModule.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthHonoContainerModule.int.spec.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BetterAuthHonoContainerModule = void 0;
4
- const buildBetterAuthHonoController_1 = require("../calculations/buildBetterAuthHonoController");
5
- const BaseBetterAuthContainerModule_1 = require("./BaseBetterAuthContainerModule");
6
- class BetterAuthHonoContainerModule extends BaseBetterAuthContainerModule_1.BaseBetterAuthContainerModule {
7
- static fromOptions(basePath, betterAuth, transform) {
8
- return new BetterAuthHonoContainerModule(basePath, () => betterAuth, [], transform);
9
- }
10
- _buildBetterAuthControllerClass(basePath, serviceIdentifier) {
11
- return (0, buildBetterAuthHonoController_1.buildBetterAuthHonoController)(basePath, serviceIdentifier);
12
- }
13
- }
14
- exports.BetterAuthHonoContainerModule = BetterAuthHonoContainerModule;
15
- //# sourceMappingURL=BetterAuthHonoContainerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthHonoContainerModule.js","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthHonoContainerModule.ts"],"names":[],"mappings":";;;AAGA,iGAA8F;AAE9F,mFAAgF;AAEhF,MAAa,6BAMX,SAAQ,6DAAiD;IAClD,MAAM,CAAC,WAAW,CACvB,QAAgB,EAChB,UAAgC,EAChC,SAAmE;QAEnE,OAAO,IAAI,6BAA6B,CACtC,QAAQ,EACR,GAAG,EAAE,CAAC,UAAU,EAChB,EAAE,EACF,SAAS,CACV,CAAC;IACJ,CAAC;IAEkB,+BAA+B,CAChD,QAAgB,EAChB,iBAAyB;QAEzB,OAAO,IAAA,6DAA6B,EAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACpE,CAAC;CACF;AA1BD,sEA0BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthUwebSocketsContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthUwebSocketsContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,qBAAa,oCAAoC,CAC/C,QAAQ,SAAS,iBAAiB,EAClC,QAAQ,SAAS,CAEf,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CACzD,SAAQ,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,CAAC;WAC3C,WAAW,CAAC,QAAQ,SAAS,iBAAiB,EAC1D,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,EAChC,SAAS,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAClE,oCAAoC,CACrC,QAAQ,EACR,MAAM,UAAU,CAAC,QAAQ,CAAC,CAC3B;cASkB,+BAA+B,CAChD,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;CAGpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BetterAuthUwebSocketsContainerModule.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthUwebSocketsContainerModule.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthUwebSocketsContainerModule.int.spec.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BetterAuthUwebSocketsContainerModule = void 0;
4
- const buildBetterAuthUwebSocketsController_1 = require("../calculations/buildBetterAuthUwebSocketsController");
5
- const BaseBetterAuthContainerModule_1 = require("./BaseBetterAuthContainerModule");
6
- class BetterAuthUwebSocketsContainerModule extends BaseBetterAuthContainerModule_1.BaseBetterAuthContainerModule {
7
- static fromOptions(basePath, betterAuth, transform) {
8
- return new BetterAuthUwebSocketsContainerModule(basePath, () => betterAuth, [], transform);
9
- }
10
- _buildBetterAuthControllerClass(basePath, serviceIdentifier) {
11
- return (0, buildBetterAuthUwebSocketsController_1.buildBetterAuthUwebSocketsController)(basePath, serviceIdentifier);
12
- }
13
- }
14
- exports.BetterAuthUwebSocketsContainerModule = BetterAuthUwebSocketsContainerModule;
15
- //# sourceMappingURL=BetterAuthUwebSocketsContainerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BetterAuthUwebSocketsContainerModule.js","sourceRoot":"","sources":["../../../../src/auth/services/BetterAuthUwebSocketsContainerModule.ts"],"names":[],"mappings":";;;AAGA,+GAA4G;AAE5G,mFAAgF;AAEhF,MAAa,oCAMX,SAAQ,6DAAiD;IAClD,MAAM,CAAC,WAAW,CACvB,QAAgB,EAChB,UAAgC,EAChC,SAAmE;QAKnE,OAAO,IAAI,oCAAoC,CAC7C,QAAQ,EACR,GAAG,EAAE,CAAC,UAAU,EAChB,EAAE,EACF,SAAS,CACV,CAAC;IACJ,CAAC;IAEkB,+BAA+B,CAChD,QAAgB,EAChB,iBAAyB;QAEzB,OAAO,IAAA,2EAAoC,EAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IAC3E,CAAC;CACF;AA7BD,oFA6BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,oCAAoC,EAAE,MAAM,sDAAsD,CAAC;AAE5G,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/lib/cjs/index.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BetterAuthUwebSocketsContainerModule = exports.BetterAuthHonoContainerModule = exports.BetterAuthFastifyContainerModule = exports.BetterAuthExpressContainerModule = exports.BetterAuthExpress4ContainerModule = exports.UwebSocketsUserSession = exports.HonoUserSession = exports.ExpressUserSession = exports.FastifyUserSession = exports.betterAuthMiddlewareServiceIdentifier = void 0;
4
- var betterAuthMiddlewareServiceIdentifier_1 = require("./auth/models/betterAuthMiddlewareServiceIdentifier");
5
- Object.defineProperty(exports, "betterAuthMiddlewareServiceIdentifier", { enumerable: true, get: function () { return betterAuthMiddlewareServiceIdentifier_1.betterAuthMiddlewareServiceIdentifier; } });
6
- var FastifyUserSession_1 = require("./auth/decorators/FastifyUserSession");
7
- Object.defineProperty(exports, "FastifyUserSession", { enumerable: true, get: function () { return FastifyUserSession_1.FastifyUserSession; } });
8
- var ExpressUserSession_1 = require("./auth/decorators/ExpressUserSession");
9
- Object.defineProperty(exports, "ExpressUserSession", { enumerable: true, get: function () { return ExpressUserSession_1.ExpressUserSession; } });
10
- var HonoUserSession_1 = require("./auth/decorators/HonoUserSession");
11
- Object.defineProperty(exports, "HonoUserSession", { enumerable: true, get: function () { return HonoUserSession_1.HonoUserSession; } });
12
- var UwebSocketsUserSession_1 = require("./auth/decorators/UwebSocketsUserSession");
13
- Object.defineProperty(exports, "UwebSocketsUserSession", { enumerable: true, get: function () { return UwebSocketsUserSession_1.UwebSocketsUserSession; } });
14
- var BetterAuthExpress4ContainerModule_1 = require("./auth/services/BetterAuthExpress4ContainerModule");
15
- Object.defineProperty(exports, "BetterAuthExpress4ContainerModule", { enumerable: true, get: function () { return BetterAuthExpress4ContainerModule_1.BetterAuthExpress4ContainerModule; } });
16
- var BetterAuthExpressContainerModule_1 = require("./auth/services/BetterAuthExpressContainerModule");
17
- Object.defineProperty(exports, "BetterAuthExpressContainerModule", { enumerable: true, get: function () { return BetterAuthExpressContainerModule_1.BetterAuthExpressContainerModule; } });
18
- var BetterAuthFastifyContainerModule_1 = require("./auth/services/BetterAuthFastifyContainerModule");
19
- Object.defineProperty(exports, "BetterAuthFastifyContainerModule", { enumerable: true, get: function () { return BetterAuthFastifyContainerModule_1.BetterAuthFastifyContainerModule; } });
20
- var BetterAuthHonoContainerModule_1 = require("./auth/services/BetterAuthHonoContainerModule");
21
- Object.defineProperty(exports, "BetterAuthHonoContainerModule", { enumerable: true, get: function () { return BetterAuthHonoContainerModule_1.BetterAuthHonoContainerModule; } });
22
- var BetterAuthUwebSocketsContainerModule_1 = require("./auth/services/BetterAuthUwebSocketsContainerModule");
23
- Object.defineProperty(exports, "BetterAuthUwebSocketsContainerModule", { enumerable: true, get: function () { return BetterAuthUwebSocketsContainerModule_1.BetterAuthUwebSocketsContainerModule; } });
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,6GAA4G;AAAnG,8JAAA,qCAAqC,OAAA;AAC9C,2EAA0E;AAAjE,wHAAA,kBAAkB,OAAA;AAC3B,2EAA0E;AAAjE,wHAAA,kBAAkB,OAAA;AAC3B,qEAAoE;AAA3D,kHAAA,eAAe,OAAA;AACxB,mFAAkF;AAAzE,gIAAA,sBAAsB,OAAA;AAC/B,uGAAsG;AAA7F,sJAAA,iCAAiC,OAAA;AAC1C,qGAAoG;AAA3F,oJAAA,gCAAgC,OAAA;AACzC,qGAAoG;AAA3F,oJAAA,gCAAgC,OAAA;AACzC,+FAA8F;AAArF,8IAAA,6BAA6B,OAAA;AACtC,6GAA4G;AAAnG,4JAAA,oCAAoC,OAAA"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,56 +0,0 @@
1
- import { BetterAuthOptions, betterAuth, InferSession, InferUser } from 'better-auth';
2
- import { ContainerModule, ResolvedValueInjectOptions, Newable } from 'inversify';
3
-
4
- declare const betterAuthMiddlewareServiceIdentifier: unique symbol;
5
-
6
- declare function FastifyUserSession(): ParameterDecorator;
7
-
8
- declare function ExpressUserSession(): ParameterDecorator;
9
-
10
- declare function HonoUserSession(): ParameterDecorator;
11
-
12
- declare function UwebSocketsUserSession(): ParameterDecorator;
13
-
14
- type BetterAuth<TOptions extends BetterAuthOptions> = ReturnType<typeof betterAuth<TOptions>>;
15
-
16
- type MapToResolvedValueInjectOptions<TArgs extends unknown[]> = {
17
- [K in keyof TArgs]-?: ResolvedValueInjectOptions<TArgs[K]>;
18
- };
19
- declare abstract class BaseBetterAuthContainerModule<TOptions extends BetterAuthOptions, TFactory extends (...args: any[]) => BetterAuth<TOptions> | Promise<BetterAuth<TOptions>>> extends ContainerModule {
20
- #private;
21
- constructor(basePath: string, factory: TFactory, params: MapToResolvedValueInjectOptions<Parameters<TFactory>>, transform?: (controllerClass: Newable<unknown>) => Newable<unknown>);
22
- protected abstract _buildBetterAuthControllerClass(basePath: string, serviceIdentifier: symbol): Newable<unknown>;
23
- }
24
-
25
- declare class BetterAuthExpress4ContainerModule<TOptions extends BetterAuthOptions, TFactory extends (...args: any[]) => BetterAuth<TOptions> | Promise<BetterAuth<TOptions>>> extends BaseBetterAuthContainerModule<TOptions, TFactory> {
26
- static fromOptions<TOptions extends BetterAuthOptions>(basePath: string, betterAuth: BetterAuth<TOptions>, transform?: (controllerClass: Newable<unknown>) => Newable<unknown>): BetterAuthExpress4ContainerModule<TOptions, () => BetterAuth<TOptions>>;
27
- protected _buildBetterAuthControllerClass(basePath: string, serviceIdentifier: symbol): Newable<unknown>;
28
- }
29
-
30
- declare class BetterAuthExpressContainerModule<TOptions extends BetterAuthOptions, TFactory extends (...args: any[]) => BetterAuth<TOptions> | Promise<BetterAuth<TOptions>>> extends BaseBetterAuthContainerModule<TOptions, TFactory> {
31
- static fromOptions<TOptions extends BetterAuthOptions>(basePath: string, betterAuth: BetterAuth<TOptions>, transform?: (controllerClass: Newable<unknown>) => Newable<unknown>): BetterAuthExpressContainerModule<TOptions, () => BetterAuth<TOptions>>;
32
- protected _buildBetterAuthControllerClass(basePath: string, serviceIdentifier: symbol): Newable<unknown>;
33
- }
34
-
35
- declare class BetterAuthFastifyContainerModule<TOptions extends BetterAuthOptions, TFactory extends (...args: any[]) => BetterAuth<TOptions> | Promise<BetterAuth<TOptions>>> extends BaseBetterAuthContainerModule<TOptions, TFactory> {
36
- static fromOptions<TOptions extends BetterAuthOptions>(basePath: string, betterAuth: BetterAuth<TOptions>, transform?: (controllerClass: Newable<unknown>) => Newable<unknown>): BetterAuthFastifyContainerModule<TOptions, () => BetterAuth<TOptions>>;
37
- protected _buildBetterAuthControllerClass(basePath: string, serviceIdentifier: symbol): Newable<unknown>;
38
- }
39
-
40
- declare class BetterAuthHonoContainerModule<TOptions extends BetterAuthOptions, TFactory extends (...args: any[]) => BetterAuth<TOptions> | Promise<BetterAuth<TOptions>>> extends BaseBetterAuthContainerModule<TOptions, TFactory> {
41
- static fromOptions<TOptions extends BetterAuthOptions>(basePath: string, betterAuth: BetterAuth<TOptions>, transform?: (controllerClass: Newable<unknown>) => Newable<unknown>): BetterAuthHonoContainerModule<TOptions, () => BetterAuth<TOptions>>;
42
- protected _buildBetterAuthControllerClass(basePath: string, serviceIdentifier: symbol): Newable<unknown>;
43
- }
44
-
45
- declare class BetterAuthUwebSocketsContainerModule<TOptions extends BetterAuthOptions, TFactory extends (...args: any[]) => BetterAuth<TOptions> | Promise<BetterAuth<TOptions>>> extends BaseBetterAuthContainerModule<TOptions, TFactory> {
46
- static fromOptions<TOptions extends BetterAuthOptions>(basePath: string, betterAuth: BetterAuth<TOptions>, transform?: (controllerClass: Newable<unknown>) => Newable<unknown>): BetterAuthUwebSocketsContainerModule<TOptions, () => BetterAuth<TOptions>>;
47
- protected _buildBetterAuthControllerClass(basePath: string, serviceIdentifier: symbol): Newable<unknown>;
48
- }
49
-
50
- interface UserSession<TOptions extends BetterAuthOptions> {
51
- session: InferSession<TOptions>;
52
- user: InferUser<TOptions>;
53
- }
54
-
55
- export { BetterAuthExpress4ContainerModule, BetterAuthExpressContainerModule, BetterAuthFastifyContainerModule, BetterAuthHonoContainerModule, BetterAuthUwebSocketsContainerModule, ExpressUserSession, FastifyUserSession, HonoUserSession, UwebSocketsUserSession, betterAuthMiddlewareServiceIdentifier };
56
- export type { BetterAuth, UserSession };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,oCAAoC,EAAE,MAAM,sDAAsD,CAAC;AAE5G,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/lib/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- import{InternalServerErrorHttpResponse as e,createCustomParameterDecorator as t,All as n,Request as r,Response as s,Controller as o}from"@inversifyjs/http-core";import{toNodeHandler as a}from"better-auth/node";import{inject as i,ContainerModule as d}from"inversify";const u=Symbol.for("@inversifyjs/better-auth/betterAuthMiddleware"),c=Symbol.for("@inversifyjs/better-auth/BetterAuthProperty");function l(t){const n=t[c];if(void 0===n)throw new e(void 0,"BetterAuth auth not found when accessing user session. Did you forget to apply the BetterAuth middleware?");return n}async function h(e){const t=l(e),n=new Headers;return void 0!==e.headers.cookie&&n.append("cookie",e.headers.cookie),t.api.getSession({asResponse:!1,headers:n})}function p(){return t(h)}async function f(e){const t=l(e),n=new Headers;return void 0!==e.headers.cookie&&n.append("cookie",e.headers.cookie),t.api.getSession({asResponse:!1,headers:n})}function y(){return t(f)}async function w(e){const t=l(e),n=new Headers,r=e.header("cookie");return void 0!==r&&n.append("cookie",r),t.api.getSession({asResponse:!1,headers:n})}function b(){return t(w)}async function g(e){const t=l(e),n=new Headers,r=e.getHeader("cookie");return""!==r&&n.append("cookie",r),t.api.getSession({asResponse:!1,headers:n})}function v(){return t(g)}function m(e,t,n,r){var s,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var i=e.length-1;i>=0;i--)(s=e[i])&&(a=(o<3?s(a):o>3?s(t,n,a):s(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function R(e,t){return function(n,r){t(n,r,e)}}"function"==typeof SuppressedError&&SuppressedError;const S=Symbol.for("@inversifyjs/better-auth/betterAuth");class B extends d{constructor(e,t,n,r){super(s=>{this.#e(e,t,n,s,r)})}#e(e,t,n,r,s){r.bind(S).toResolvedValue(t,n).inSingletonScope(),r.bind(u).toResolvedValue(e=>{return new(t=e,class{async execute(e,n,r){e[c]=t,await r()}});var t},[S]).inSingletonScope();const o=Symbol("@inversifyjs/better-auth/betterAuthController"),a=this._buildBetterAuthControllerClass(e,o);r.bind(o).to(void 0===s?a:s(a)).inSingletonScope()}}class A extends B{static fromOptions(e,t,n){return new A(e,()=>t,[],n)}_buildBetterAuthControllerClass(e,t){return function(e,t){let d=class{#t;constructor(e){this.#t=a(e)}async handle(e,t){await this.#t(e,t)}};return m([n("/*"),R(0,r()),R(1,s())],d.prototype,"handle",null),d=m([o({path:e,serviceIdentifier:t}),R(0,i(S))],d),d}(e,t)}}class C extends B{static fromOptions(e,t,n){return new C(e,()=>t,[],n)}_buildBetterAuthControllerClass(e,t){return function(e,t){let d=class{#t;constructor(e){this.#t=a(e)}async handle(e,t){await this.#t(e,t)}};return m([n("/{*any}"),R(0,r()),R(1,s())],d.prototype,"handle",null),d=m([o({path:e,serviceIdentifier:t}),R(0,i(S))],d),d}(e,t)}}class H extends B{static fromOptions(e,t,n){return new H(e,()=>t,[],n)}_buildBetterAuthControllerClass(e,t){return function(e,t){let a=class{#n;constructor(e){this.#n=e}async handle(e,t){const n=this.#r(e),r=await this.#n.handler(n);await this.#s(r,t)}#o(e,t,n){if(void 0!==t.body){const r=e.get("content-type");null!==r&&r.includes("application/x-www-form-urlencoded")?n.body=new URLSearchParams(t.body):n.body=JSON.stringify(t.body)}}#a(e){const t=new Headers;for(const[n,r]of Object.entries(e.headers))if(void 0!==r)if(Array.isArray(r))for(const e of r)t.append(n,e);else t.append(n,r);return t}#r(e){const t=this.#a(e),n={headers:t,method:e.method};return this.#o(t,e,n),new Request(this.#i(e),n)}#i(e){return new URL(e.url,`${e.protocol}://${e.host}`)}async#s(e,t){t.status(e.status);for(const[n,r]of e.headers)t.header(n,r);t.send(null===e.body?null:await e.text())}};return m([n("/*"),R(0,r()),R(1,s())],a.prototype,"handle",null),a=m([o({path:e,serviceIdentifier:t}),R(0,i(S))],a),a}(e,t)}}class k extends B{static fromOptions(e,t,n){return new k(e,()=>t,[],n)}_buildBetterAuthControllerClass(e,t){return function(e,t){let r=class{#n;constructor(e){this.#n=e}async handle(e){return this.#n.handler(e.req.raw)}};return m([n("/*"),R(0,s())],r.prototype,"handle",null),r=m([o({path:e,serviceIdentifier:t}),R(0,i(S))],r),r}(e,t)}}class x extends B{static fromOptions(e,t,n){return new x(e,()=>t,[],n)}_buildBetterAuthControllerClass(e,t){return function(e,t){let a=class{#n;constructor(e){this.#n=e}async handle(e,t){const n=await this.#r(e,t),r=await this.#n.handler(n);await this.#s(r,t)}async#o(e,t,n){const r=e.get("content-length"),s=e.get("transfer-encoding")?.toLowerCase().includes("chunked")??!1;if((null===r||"0"===r)&&!s)return;const o=await this.#d(t);if(o.length>0){const t=e.get("content-type");null!==t&&t.includes("application/x-www-form-urlencoded")?n.body=new URLSearchParams(o.toString()):n.body=o.toString()}}#a(e){const t=new Headers;return e.forEach((e,n)=>{t.append(e,n)}),t}async#r(e,t){const n=this.#a(e),r={headers:n,method:e.getMethod()},s=this.#i(e);return await this.#o(n,t,r),new Request(s,r)}#i(e){const t=e.getHeader("x-forwarded-proto")||"http",n=e.getHeader("host"),r=e.getUrl(),s=e.getQuery();return new URL(`${t}://${n}${r}${s?`?${s}`:""}`)}async#d(e){return new Promise((t,n)=>{const r=[];let s=0;e.onAborted(()=>{n(new Error("Request aborted"))}),e.onData((e,n)=>{const o=Buffer.from(e);if(r.push(o),s+=o.length,n){const e=Buffer.concat(r,s);t(e)}})})}async#s(e,t){const n=await e.arrayBuffer();t.cork(()=>{t.writeStatus(e.status.toString());for(const[n,r]of e.headers)t.writeHeader(n,r);t.end(null===e.body?void 0:n)})}};return m([n("/*"),R(0,r()),R(1,s())],a.prototype,"handle",null),a=m([o({path:e,serviceIdentifier:t}),R(0,i(S))],a),a}(e,t)}}export{A as BetterAuthExpress4ContainerModule,C as BetterAuthExpressContainerModule,H as BetterAuthFastifyContainerModule,k as BetterAuthHonoContainerModule,x as BetterAuthUwebSocketsContainerModule,y as ExpressUserSession,p as FastifyUserSession,b as HonoUserSession,v as UwebSocketsUserSession,u as betterAuthMiddlewareServiceIdentifier};
2
- //# sourceMappingURL=index.js.map