@civic/auth 0.0.1-tsc.alpha.3 → 0.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1052) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/.turbo/turbo-lint$colon$fix.log +10 -0
  3. package/.turbo/turbo-test.log +722 -1011
  4. package/CHANGELOG.md +5 -0
  5. package/dist/cjs/src/browser/storage.d.ts +2 -2
  6. package/dist/cjs/src/browser/storage.d.ts.map +1 -1
  7. package/dist/cjs/src/browser/storage.js +3 -3
  8. package/dist/cjs/src/browser/storage.js.map +1 -1
  9. package/dist/cjs/src/nextjs/GetUser.d.ts +1 -1
  10. package/dist/cjs/src/nextjs/GetUser.d.ts.map +1 -1
  11. package/dist/cjs/src/nextjs/GetUser.js +3 -3
  12. package/dist/cjs/src/nextjs/GetUser.js.map +1 -1
  13. package/dist/cjs/src/nextjs/config.d.ts.map +1 -1
  14. package/dist/cjs/src/nextjs/config.js +1 -4
  15. package/dist/cjs/src/nextjs/config.js.map +1 -1
  16. package/dist/cjs/src/nextjs/cookies.d.ts +4 -4
  17. package/dist/cjs/src/nextjs/cookies.d.ts.map +1 -1
  18. package/dist/cjs/src/nextjs/cookies.js +14 -11
  19. package/dist/cjs/src/nextjs/cookies.js.map +1 -1
  20. package/dist/cjs/src/nextjs/index.d.ts +1 -1
  21. package/dist/cjs/src/nextjs/index.d.ts.map +1 -1
  22. package/dist/cjs/src/nextjs/index.js.map +1 -1
  23. package/dist/cjs/src/nextjs/routeHandler.d.ts.map +1 -1
  24. package/dist/cjs/src/nextjs/routeHandler.js +1 -5
  25. package/dist/cjs/src/nextjs/routeHandler.js.map +1 -1
  26. package/dist/cjs/src/reactjs/hooks/index.d.ts +0 -1
  27. package/dist/cjs/src/reactjs/hooks/index.d.ts.map +1 -1
  28. package/dist/cjs/src/reactjs/hooks/index.js +1 -3
  29. package/dist/cjs/src/reactjs/hooks/index.js.map +1 -1
  30. package/dist/cjs/src/server/ServerAuthenticationResolver.d.ts.map +1 -1
  31. package/dist/cjs/src/server/ServerAuthenticationResolver.js +2 -7
  32. package/dist/cjs/src/server/ServerAuthenticationResolver.js.map +1 -1
  33. package/dist/cjs/src/server/login.d.ts +2 -2
  34. package/dist/cjs/src/server/login.d.ts.map +1 -1
  35. package/dist/cjs/src/server/login.js +2 -2
  36. package/dist/cjs/src/server/login.js.map +1 -1
  37. package/dist/cjs/src/services/AuthenticationService.d.ts.map +1 -1
  38. package/dist/cjs/src/services/AuthenticationService.js +6 -16
  39. package/dist/cjs/src/services/AuthenticationService.js.map +1 -1
  40. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers → dist/cjs/src/shared}/AuthProvider.d.ts +7 -9
  41. package/dist/cjs/src/shared/AuthProvider.d.ts.map +1 -0
  42. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers → dist/cjs/src/shared}/AuthProvider.js +43 -46
  43. package/dist/cjs/src/shared/AuthProvider.js.map +1 -0
  44. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers → dist/cjs/src/shared}/CivicAuthProvider.d.ts +3 -3
  45. package/dist/cjs/src/shared/CivicAuthProvider.d.ts.map +1 -0
  46. package/dist/cjs/src/shared/CivicAuthProvider.js +19 -0
  47. package/dist/cjs/src/shared/CivicAuthProvider.js.map +1 -0
  48. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib → dist/cjs/src/shared}/GenericAuthenticationRefresher.d.ts +4 -4
  49. package/dist/cjs/src/shared/GenericAuthenticationRefresher.d.ts.map +1 -0
  50. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib → dist/cjs/src/shared}/GenericAuthenticationRefresher.js +4 -4
  51. package/dist/cjs/src/shared/GenericAuthenticationRefresher.js.map +1 -0
  52. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers → dist/cjs/src/shared}/UserProvider.d.ts +6 -7
  53. package/dist/cjs/src/shared/UserProvider.d.ts.map +1 -0
  54. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers → dist/cjs/src/shared}/UserProvider.js +11 -12
  55. package/dist/cjs/src/shared/UserProvider.js.map +1 -0
  56. package/dist/cjs/src/shared/UserSession.d.ts +12 -0
  57. package/dist/cjs/src/shared/UserSession.d.ts.map +1 -0
  58. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib → dist/cjs/src/shared}/UserSession.js +7 -7
  59. package/dist/cjs/src/shared/UserSession.js.map +1 -0
  60. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.d.ts.map +1 -1
  61. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.js +7 -8
  62. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.js.map +1 -1
  63. package/dist/cjs/src/shared/components/LoadingIcon.d.ts.map +1 -1
  64. package/dist/cjs/src/shared/components/LoadingIcon.js +7 -1
  65. package/dist/cjs/src/shared/components/LoadingIcon.js.map +1 -1
  66. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +1 -1
  67. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.js +2 -6
  68. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.js.map +1 -1
  69. package/dist/cjs/src/shared/lib/UserSession.d.ts +4 -4
  70. package/dist/cjs/src/shared/lib/UserSession.d.ts.map +1 -1
  71. package/dist/cjs/src/shared/lib/UserSession.js +4 -4
  72. package/dist/cjs/src/shared/lib/UserSession.js.map +1 -1
  73. package/dist/cjs/src/shared/lib/session.js +1 -1
  74. package/dist/cjs/src/shared/lib/session.js.map +1 -1
  75. package/dist/cjs/src/shared/lib/storage.d.ts +2 -2
  76. package/dist/cjs/src/shared/lib/storage.d.ts.map +1 -1
  77. package/dist/cjs/src/shared/lib/storage.js.map +1 -1
  78. package/dist/cjs/src/shared/lib/util.d.ts +4 -4
  79. package/dist/cjs/src/shared/lib/util.d.ts.map +1 -1
  80. package/dist/cjs/src/shared/lib/util.js +15 -17
  81. package/dist/cjs/src/shared/lib/util.js.map +1 -1
  82. package/dist/cjs/src/shared/providers/AuthProvider.d.ts.map +1 -1
  83. package/dist/cjs/src/shared/providers/AuthProvider.js +24 -23
  84. package/dist/cjs/src/shared/providers/AuthProvider.js.map +1 -1
  85. package/dist/cjs/src/shared/session.d.ts +3 -0
  86. package/dist/cjs/src/shared/session.d.ts.map +1 -0
  87. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib → dist/cjs/src/shared}/session.js +2 -2
  88. package/dist/cjs/src/shared/session.js.map +1 -0
  89. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib → dist/cjs/src/shared}/util.d.ts +10 -4
  90. package/dist/cjs/src/shared/util.d.ts.map +1 -0
  91. package/{.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib → dist/cjs/src/shared}/util.js +32 -12
  92. package/dist/cjs/src/shared/util.js.map +1 -0
  93. package/dist/cjs/src/types.d.ts +2 -2
  94. package/dist/cjs/src/types.d.ts.map +1 -1
  95. package/dist/cjs/src/types.js.map +1 -1
  96. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  97. package/dist/esm/src/browser/storage.d.ts +2 -2
  98. package/dist/esm/src/browser/storage.d.ts.map +1 -1
  99. package/dist/esm/src/browser/storage.js +3 -3
  100. package/dist/esm/src/browser/storage.js.map +1 -1
  101. package/dist/esm/src/nextjs/GetUser.d.ts +1 -1
  102. package/dist/esm/src/nextjs/GetUser.d.ts.map +1 -1
  103. package/dist/esm/src/nextjs/GetUser.js +3 -3
  104. package/dist/esm/src/nextjs/GetUser.js.map +1 -1
  105. package/dist/esm/src/nextjs/config.d.ts.map +1 -1
  106. package/dist/esm/src/nextjs/config.js +1 -4
  107. package/dist/esm/src/nextjs/config.js.map +1 -1
  108. package/dist/esm/src/nextjs/cookies.d.ts +4 -4
  109. package/dist/esm/src/nextjs/cookies.d.ts.map +1 -1
  110. package/dist/esm/src/nextjs/cookies.js +14 -11
  111. package/dist/esm/src/nextjs/cookies.js.map +1 -1
  112. package/dist/esm/src/nextjs/index.d.ts +1 -1
  113. package/dist/esm/src/nextjs/index.d.ts.map +1 -1
  114. package/dist/esm/src/nextjs/index.js +1 -1
  115. package/dist/esm/src/nextjs/index.js.map +1 -1
  116. package/dist/esm/src/nextjs/routeHandler.d.ts.map +1 -1
  117. package/dist/esm/src/nextjs/routeHandler.js +1 -5
  118. package/dist/esm/src/nextjs/routeHandler.js.map +1 -1
  119. package/dist/esm/src/reactjs/hooks/index.d.ts +0 -1
  120. package/dist/esm/src/reactjs/hooks/index.d.ts.map +1 -1
  121. package/dist/esm/src/reactjs/hooks/index.js +0 -1
  122. package/dist/esm/src/reactjs/hooks/index.js.map +1 -1
  123. package/dist/esm/src/server/ServerAuthenticationResolver.d.ts.map +1 -1
  124. package/dist/esm/src/server/ServerAuthenticationResolver.js +2 -7
  125. package/dist/esm/src/server/ServerAuthenticationResolver.js.map +1 -1
  126. package/dist/esm/src/server/login.d.ts +2 -2
  127. package/dist/esm/src/server/login.d.ts.map +1 -1
  128. package/dist/esm/src/server/login.js +2 -2
  129. package/dist/esm/src/server/login.js.map +1 -1
  130. package/dist/esm/src/services/AuthenticationService.d.ts.map +1 -1
  131. package/dist/esm/src/services/AuthenticationService.js +6 -16
  132. package/dist/esm/src/services/AuthenticationService.js.map +1 -1
  133. package/dist/esm/src/shared/components/CivicAuthIframeContainer.d.ts.map +1 -1
  134. package/dist/esm/src/shared/components/CivicAuthIframeContainer.js +7 -8
  135. package/dist/esm/src/shared/components/CivicAuthIframeContainer.js.map +1 -1
  136. package/dist/esm/src/shared/components/LoadingIcon.d.ts.map +1 -1
  137. package/dist/esm/src/shared/components/LoadingIcon.js +7 -1
  138. package/dist/esm/src/shared/components/LoadingIcon.js.map +1 -1
  139. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +1 -1
  140. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.js +2 -6
  141. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.js.map +1 -1
  142. package/dist/esm/src/shared/lib/UserSession.d.ts +4 -4
  143. package/dist/esm/src/shared/lib/UserSession.d.ts.map +1 -1
  144. package/dist/esm/src/shared/lib/UserSession.js +4 -4
  145. package/dist/esm/src/shared/lib/UserSession.js.map +1 -1
  146. package/dist/esm/src/shared/lib/session.js +1 -1
  147. package/dist/esm/src/shared/lib/session.js.map +1 -1
  148. package/dist/esm/src/shared/lib/storage.d.ts +2 -2
  149. package/dist/esm/src/shared/lib/storage.d.ts.map +1 -1
  150. package/dist/esm/src/shared/lib/storage.js.map +1 -1
  151. package/dist/esm/src/shared/lib/util.d.ts +4 -4
  152. package/dist/esm/src/shared/lib/util.d.ts.map +1 -1
  153. package/dist/esm/src/shared/lib/util.js +16 -18
  154. package/dist/esm/src/shared/lib/util.js.map +1 -1
  155. package/dist/esm/src/shared/providers/AuthProvider.d.ts.map +1 -1
  156. package/dist/esm/src/shared/providers/AuthProvider.js +24 -23
  157. package/dist/esm/src/shared/providers/AuthProvider.js.map +1 -1
  158. package/dist/esm/src/types.d.ts +2 -2
  159. package/dist/esm/src/types.d.ts.map +1 -1
  160. package/dist/esm/src/types.js.map +1 -1
  161. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  162. package/dist/src/nextjs/GetUser.d.ts.map +1 -1
  163. package/dist/src/nextjs/config.d.ts.map +1 -1
  164. package/dist/src/nextjs/config.js +1 -4
  165. package/dist/src/nextjs/config.js.map +1 -1
  166. package/dist/src/nextjs/cookies.d.ts.map +1 -1
  167. package/dist/src/nextjs/cookies.js +14 -11
  168. package/dist/src/nextjs/cookies.js.map +1 -1
  169. package/dist/src/nextjs/index.d.ts.map +1 -1
  170. package/dist/src/nextjs/routeHandler.d.ts.map +1 -1
  171. package/dist/src/nextjs/routeHandler.js +1 -5
  172. package/dist/src/nextjs/routeHandler.js.map +1 -1
  173. package/dist/src/reactjs/hooks/index.d.ts +0 -1
  174. package/dist/src/reactjs/hooks/index.d.ts.map +1 -1
  175. package/dist/src/reactjs/hooks/index.js +0 -1
  176. package/dist/src/reactjs/hooks/index.js.map +1 -1
  177. package/dist/src/server/ServerAuthenticationResolver.d.ts.map +1 -1
  178. package/dist/src/server/ServerAuthenticationResolver.js +2 -7
  179. package/dist/src/server/ServerAuthenticationResolver.js.map +1 -1
  180. package/dist/src/server/login.d.ts +2 -2
  181. package/dist/src/server/login.d.ts.map +1 -1
  182. package/dist/src/server/login.js +2 -2
  183. package/dist/src/server/login.js.map +1 -1
  184. package/dist/src/services/AuthenticationService.d.ts.map +1 -1
  185. package/dist/src/services/AuthenticationService.js +6 -16
  186. package/dist/src/services/AuthenticationService.js.map +1 -1
  187. package/dist/src/shared/components/CivicAuthIframeContainer.d.ts.map +1 -1
  188. package/dist/src/shared/components/CivicAuthIframeContainer.js +7 -8
  189. package/dist/src/shared/components/CivicAuthIframeContainer.js.map +1 -1
  190. package/dist/src/shared/components/LoadingIcon.d.ts.map +1 -1
  191. package/dist/src/shared/components/LoadingIcon.js +7 -1
  192. package/dist/src/shared/components/LoadingIcon.js.map +1 -1
  193. package/dist/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +1 -1
  194. package/dist/src/shared/lib/GenericAuthenticationRefresher.js +2 -6
  195. package/dist/src/shared/lib/GenericAuthenticationRefresher.js.map +1 -1
  196. package/dist/src/shared/lib/UserSession.d.ts.map +1 -1
  197. package/dist/src/shared/lib/UserSession.js +4 -4
  198. package/dist/src/shared/lib/UserSession.js.map +1 -1
  199. package/dist/src/shared/lib/util.d.ts +4 -4
  200. package/dist/src/shared/lib/util.d.ts.map +1 -1
  201. package/dist/src/shared/lib/util.js +16 -18
  202. package/dist/src/shared/lib/util.js.map +1 -1
  203. package/dist/src/shared/providers/AuthProvider.d.ts.map +1 -1
  204. package/dist/src/shared/providers/AuthProvider.js +24 -23
  205. package/dist/src/shared/providers/AuthProvider.js.map +1 -1
  206. package/dist/test/unit/server/login.test.js +8 -8
  207. package/dist/test/unit/server/login.test.js.map +1 -1
  208. package/dist/test/unit/server/session.test.js +4 -4
  209. package/dist/test/unit/server/session.test.js.map +1 -1
  210. package/dist/test/unit/services/AuthenticationService.test.js +3 -3
  211. package/dist/test/unit/services/AuthenticationService.test.js.map +1 -1
  212. package/dist/test/unit/services/ServerAuthenticationResolver.test.js +3 -3
  213. package/dist/test/unit/services/ServerAuthenticationResolver.test.js.map +1 -1
  214. package/dist/test/unit/shared/GenericAuthenticationRefresher.test.js +2 -2
  215. package/dist/test/unit/shared/GenericAuthenticationRefresher.test.js.map +1 -1
  216. package/dist/tsconfig.tsbuildinfo +1 -1
  217. package/package.json +3 -3
  218. package/src/browser/storage.ts +3 -3
  219. package/src/nextjs/GetUser.ts +3 -3
  220. package/src/nextjs/config.ts +1 -5
  221. package/src/nextjs/cookies.ts +14 -18
  222. package/src/nextjs/index.ts +1 -3
  223. package/src/nextjs/routeHandler.ts +1 -5
  224. package/src/reactjs/hooks/index.ts +0 -1
  225. package/src/server/ServerAuthenticationResolver.ts +2 -7
  226. package/src/server/login.ts +8 -7
  227. package/src/services/AuthenticationService.ts +11 -16
  228. package/src/shared/components/CivicAuthIframeContainer.tsx +12 -11
  229. package/src/shared/components/LoadingIcon.tsx +9 -1
  230. package/src/shared/lib/GenericAuthenticationRefresher.ts +3 -8
  231. package/src/shared/lib/UserSession.ts +6 -6
  232. package/src/shared/lib/session.ts +1 -1
  233. package/src/shared/lib/storage.ts +2 -2
  234. package/src/shared/lib/util.ts +17 -19
  235. package/src/shared/providers/AuthProvider.tsx +34 -27
  236. package/src/types.ts +2 -2
  237. package/test/unit/nextjs/getUser.test.ts +8 -8
  238. package/test/unit/publicApi/__snapshots__/apiSnapshot.test.ts.snap +0 -1
  239. package/test/unit/server/login.test.ts +16 -14
  240. package/test/unit/server/session.test.ts +4 -4
  241. package/test/unit/services/AuthenticationService.test.ts +3 -3
  242. package/test/unit/services/ServerAuthenticationResolver.test.ts +11 -6
  243. package/test/unit/shared/GenericAuthenticationRefresher.test.ts +4 -4
  244. package/test/unit/shared/UserSession.test.ts +6 -6
  245. package/test/unit/shared/storage.test.ts +6 -6
  246. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/browser/storage.d.ts +0 -6
  247. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/browser/storage.d.ts.map +0 -1
  248. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/browser/storage.js +0 -13
  249. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/browser/storage.js.map +0 -1
  250. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/config.d.ts +0 -3
  251. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/config.d.ts.map +0 -1
  252. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/config.js +0 -8
  253. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/config.js.map +0 -1
  254. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/constants.d.ts +0 -9
  255. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/constants.d.ts.map +0 -1
  256. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/constants.js +0 -26
  257. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/constants.js.map +0 -1
  258. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/index.d.ts +0 -5
  259. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/index.d.ts.map +0 -1
  260. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/index.js +0 -5
  261. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/index.js.map +0 -1
  262. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/cookies.d.ts +0 -7
  263. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/cookies.d.ts.map +0 -1
  264. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/cookies.js +0 -26
  265. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/cookies.js.map +0 -1
  266. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/jwt.d.ts +0 -3
  267. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/jwt.d.ts.map +0 -1
  268. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/jwt.js +0 -13
  269. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/jwt.js.map +0 -1
  270. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/logger.d.ts +0 -26
  271. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/logger.d.ts.map +0 -1
  272. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/logger.js +0 -60
  273. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/logger.js.map +0 -1
  274. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/oauth.d.ts +0 -19
  275. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/oauth.d.ts.map +0 -1
  276. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/oauth.js +0 -67
  277. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/oauth.js.map +0 -1
  278. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/postMessage.d.ts +0 -4
  279. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/postMessage.d.ts.map +0 -1
  280. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/postMessage.js +0 -18
  281. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/postMessage.js.map +0 -1
  282. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/windowUtil.d.ts +0 -4
  283. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/windowUtil.d.ts.map +0 -1
  284. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/windowUtil.js +0 -34
  285. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/lib/windowUtil.js.map +0 -1
  286. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/GetUser.d.ts +0 -6
  287. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/GetUser.d.ts.map +0 -1
  288. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/GetUser.js +0 -22
  289. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/GetUser.js.map +0 -1
  290. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/client/index.d.ts +0 -2
  291. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/client/index.d.ts.map +0 -1
  292. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/client/index.js +0 -6
  293. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/client/index.js.map +0 -1
  294. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/config.d.ts +0 -178
  295. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/config.d.ts.map +0 -1
  296. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/config.js +0 -169
  297. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/config.js.map +0 -1
  298. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/cookies.d.ts +0 -30
  299. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/cookies.d.ts.map +0 -1
  300. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/cookies.js +0 -116
  301. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/cookies.js.map +0 -1
  302. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/index.d.ts +0 -2
  303. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/index.d.ts.map +0 -1
  304. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/index.js +0 -6
  305. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/index.js.map +0 -1
  306. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useTokenCookie.d.ts +0 -3
  307. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useTokenCookie.d.ts.map +0 -1
  308. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useTokenCookie.js +0 -41
  309. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useTokenCookie.js.map +0 -1
  310. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useUserCookie.d.ts +0 -3
  311. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useUserCookie.d.ts.map +0 -1
  312. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useUserCookie.js +0 -40
  313. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/hooks/useUserCookie.js.map +0 -1
  314. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/index.d.ts +0 -7
  315. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/index.d.ts.map +0 -1
  316. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/index.js +0 -20
  317. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/index.js.map +0 -1
  318. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware/index.d.ts +0 -2
  319. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware/index.d.ts.map +0 -1
  320. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware/index.js +0 -8
  321. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware/index.js.map +0 -1
  322. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware.d.ts +0 -59
  323. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware.d.ts.map +0 -1
  324. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware.js +0 -114
  325. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/middleware.js.map +0 -1
  326. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/providers/NextAuthProvider.d.ts +0 -9
  327. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/providers/NextAuthProvider.d.ts.map +0 -1
  328. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/providers/NextAuthProvider.js +0 -54
  329. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/providers/NextAuthProvider.js.map +0 -1
  330. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/routeHandler.d.ts +0 -18
  331. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/routeHandler.d.ts.map +0 -1
  332. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/routeHandler.js +0 -221
  333. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/routeHandler.js.map +0 -1
  334. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/utils.d.ts +0 -3
  335. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/utils.d.ts.map +0 -1
  336. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/utils.js +0 -9
  337. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/nextjs/utils.js.map +0 -1
  338. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignInButton.d.ts +0 -8
  339. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignInButton.d.ts.map +0 -1
  340. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignInButton.js +0 -14
  341. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignInButton.js.map +0 -1
  342. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignOutButton.d.ts +0 -6
  343. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignOutButton.d.ts.map +0 -1
  344. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignOutButton.js +0 -14
  345. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/SignOutButton.js.map +0 -1
  346. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/UserButton.d.ts +0 -8
  347. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/UserButton.d.ts.map +0 -1
  348. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/UserButton.js +0 -62
  349. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/UserButton.js.map +0 -1
  350. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/index.d.ts +0 -6
  351. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/index.d.ts.map +0 -1
  352. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/index.js +0 -14
  353. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/components/index.js.map +0 -1
  354. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/index.d.ts +0 -9
  355. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/index.d.ts.map +0 -1
  356. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/index.js +0 -20
  357. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/index.js.map +0 -1
  358. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useAuth.d.ts +0 -3
  359. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useAuth.d.ts.map +0 -1
  360. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useAuth.js +0 -15
  361. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useAuth.js.map +0 -1
  362. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useUser.d.ts +0 -4
  363. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useUser.d.ts.map +0 -1
  364. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useUser.js +0 -15
  365. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/hooks/useUser.js.map +0 -1
  366. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/index.d.ts +0 -6
  367. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/index.d.ts.map +0 -1
  368. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/index.js +0 -17
  369. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/index.js.map +0 -1
  370. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/providers/index.d.ts +0 -8
  371. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/providers/index.d.ts.map +0 -1
  372. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/providers/index.js +0 -19
  373. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/reactjs/providers/index.js.map +0 -1
  374. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/ServerAuthenticationResolver.d.ts +0 -18
  375. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/ServerAuthenticationResolver.d.ts.map +0 -1
  376. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/ServerAuthenticationResolver.js +0 -66
  377. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/ServerAuthenticationResolver.js.map +0 -1
  378. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/config.d.ts +0 -16
  379. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/config.d.ts.map +0 -1
  380. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/config.js +0 -3
  381. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/config.js.map +0 -1
  382. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/index.d.ts +0 -6
  383. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/index.d.ts.map +0 -1
  384. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/index.js +0 -14
  385. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/index.js.map +0 -1
  386. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/login.d.ts +0 -17
  387. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/login.d.ts.map +0 -1
  388. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/login.js +0 -42
  389. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/login.js.map +0 -1
  390. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/refresh.d.ts +0 -7
  391. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/refresh.d.ts.map +0 -1
  392. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/refresh.js +0 -16
  393. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/server/refresh.js.map +0 -1
  394. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/AuthenticationService.d.ts +0 -87
  395. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/AuthenticationService.d.ts.map +0 -1
  396. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/AuthenticationService.js +0 -228
  397. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/AuthenticationService.js.map +0 -1
  398. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/PKCE.d.ts +0 -20
  399. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/PKCE.d.ts.map +0 -1
  400. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/PKCE.js +0 -50
  401. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/PKCE.js.map +0 -1
  402. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/types.d.ts +0 -23
  403. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/types.d.ts.map +0 -1
  404. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/types.js +0 -11
  405. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/services/types.js.map +0 -1
  406. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframe.d.ts +0 -8
  407. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframe.d.ts.map +0 -1
  408. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframe.js +0 -13
  409. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframe.js.map +0 -1
  410. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframeContainer.d.ts +0 -9
  411. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframeContainer.d.ts.map +0 -1
  412. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframeContainer.js +0 -96
  413. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CivicAuthIframeContainer.js.map +0 -1
  414. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CloseIcon.d.ts +0 -4
  415. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CloseIcon.d.ts.map +0 -1
  416. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CloseIcon.js +0 -10
  417. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/CloseIcon.js.map +0 -1
  418. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/LoadingIcon.d.ts +0 -4
  419. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/LoadingIcon.d.ts.map +0 -1
  420. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/LoadingIcon.js +0 -12
  421. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/components/LoadingIcon.js.map +0 -1
  422. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/index.d.ts +0 -5
  423. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/index.d.ts.map +0 -1
  424. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/index.js +0 -12
  425. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/index.js.map +0 -1
  426. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useAuth.d.ts +0 -3
  427. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useAuth.d.ts.map +0 -1
  428. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useAuth.js +0 -15
  429. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useAuth.js.map +0 -1
  430. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useConfig.d.ts +0 -3
  431. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useConfig.d.ts.map +0 -1
  432. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useConfig.js +0 -16
  433. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useConfig.js.map +0 -1
  434. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useIframe.d.ts +0 -3
  435. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useIframe.d.ts.map +0 -1
  436. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useIframe.js +0 -16
  437. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useIframe.js.map +0 -1
  438. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useSession.d.ts +0 -3
  439. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useSession.d.ts.map +0 -1
  440. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useSession.js +0 -16
  441. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useSession.js.map +0 -1
  442. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useToken.d.ts +0 -3
  443. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useToken.d.ts.map +0 -1
  444. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useToken.js +0 -15
  445. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/hooks/useToken.js.map +0 -1
  446. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.d.ts +0 -15
  447. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +0 -1
  448. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.js.map +0 -1
  449. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/UserSession.d.ts +0 -12
  450. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/UserSession.d.ts.map +0 -1
  451. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/UserSession.js.map +0 -1
  452. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/session.d.ts +0 -3
  453. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/session.d.ts.map +0 -1
  454. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/session.js.map +0 -1
  455. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/storage.d.ts +0 -25
  456. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/storage.d.ts.map +0 -1
  457. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/storage.js +0 -21
  458. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/storage.js.map +0 -1
  459. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/types.d.ts +0 -22
  460. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/types.d.ts.map +0 -1
  461. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/types.js +0 -19
  462. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/types.js.map +0 -1
  463. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/util.d.ts.map +0 -1
  464. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/lib/util.js.map +0 -1
  465. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthContext.d.ts +0 -10
  466. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthContext.d.ts.map +0 -1
  467. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthContext.js +0 -6
  468. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthContext.js.map +0 -1
  469. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthProvider.d.ts +0 -20
  470. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthProvider.d.ts.map +0 -1
  471. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/AuthProvider.js.map +0 -1
  472. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/CivicAuthProvider.d.ts.map +0 -1
  473. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/CivicAuthProvider.js +0 -19
  474. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/CivicAuthProvider.js.map +0 -1
  475. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/ConfigProvider.d.ts +0 -21
  476. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/ConfigProvider.d.ts.map +0 -1
  477. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/ConfigProvider.js +0 -24
  478. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/ConfigProvider.js.map +0 -1
  479. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/IframeProvider.d.ts +0 -16
  480. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/IframeProvider.d.ts.map +0 -1
  481. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/IframeProvider.js +0 -16
  482. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/IframeProvider.js.map +0 -1
  483. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/SessionProvider.d.ts +0 -13
  484. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/SessionProvider.d.ts.map +0 -1
  485. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/SessionProvider.js +0 -18
  486. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/SessionProvider.js.map +0 -1
  487. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/TokenProvider.d.ts +0 -18
  488. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/TokenProvider.d.ts.map +0 -1
  489. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/TokenProvider.js +0 -58
  490. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/TokenProvider.js.map +0 -1
  491. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/UserProvider.d.ts.map +0 -1
  492. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/shared/providers/UserProvider.js.map +0 -1
  493. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/types.d.ts +0 -146
  494. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/types.d.ts.map +0 -1
  495. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/types.js +0 -3
  496. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/types.js.map +0 -1
  497. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/utils.d.ts +0 -17
  498. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/utils.d.ts.map +0 -1
  499. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/utils.js +0 -53
  500. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/src/utils.js.map +0 -1
  501. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/cjs/tsconfig.cjs.tsbuildinfo +0 -1
  502. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/browser/storage.d.ts +0 -6
  503. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/browser/storage.d.ts.map +0 -1
  504. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/browser/storage.js +0 -9
  505. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/browser/storage.js.map +0 -1
  506. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/config.d.ts +0 -3
  507. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/config.d.ts.map +0 -1
  508. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/config.js +0 -5
  509. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/config.js.map +0 -1
  510. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/constants.d.ts +0 -9
  511. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/constants.d.ts.map +0 -1
  512. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/constants.js +0 -17
  513. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/constants.js.map +0 -1
  514. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/index.d.ts +0 -5
  515. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/index.d.ts.map +0 -1
  516. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/index.js +0 -3
  517. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/index.js.map +0 -1
  518. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/cookies.d.ts +0 -7
  519. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/cookies.d.ts.map +0 -1
  520. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/cookies.js +0 -23
  521. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/cookies.js.map +0 -1
  522. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/jwt.d.ts +0 -3
  523. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/jwt.d.ts.map +0 -1
  524. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/jwt.js +0 -9
  525. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/jwt.js.map +0 -1
  526. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/logger.d.ts +0 -26
  527. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/logger.d.ts.map +0 -1
  528. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/logger.js +0 -55
  529. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/logger.js.map +0 -1
  530. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/oauth.d.ts +0 -19
  531. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/oauth.d.ts.map +0 -1
  532. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/oauth.js +0 -60
  533. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/oauth.js.map +0 -1
  534. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/postMessage.d.ts +0 -4
  535. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/postMessage.d.ts.map +0 -1
  536. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/postMessage.js +0 -15
  537. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/postMessage.js.map +0 -1
  538. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/windowUtil.d.ts +0 -4
  539. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/windowUtil.d.ts.map +0 -1
  540. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/windowUtil.js +0 -30
  541. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/lib/windowUtil.js.map +0 -1
  542. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/GetUser.d.ts +0 -6
  543. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/GetUser.d.ts.map +0 -1
  544. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/GetUser.js +0 -18
  545. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/GetUser.js.map +0 -1
  546. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/client/index.d.ts +0 -2
  547. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/client/index.d.ts.map +0 -1
  548. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/client/index.js +0 -2
  549. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/client/index.js.map +0 -1
  550. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/config.d.ts +0 -178
  551. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/config.d.ts.map +0 -1
  552. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/config.js +0 -164
  553. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/config.js.map +0 -1
  554. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/cookies.d.ts +0 -30
  555. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/cookies.d.ts.map +0 -1
  556. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/cookies.js +0 -109
  557. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/cookies.js.map +0 -1
  558. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/index.d.ts +0 -2
  559. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/index.d.ts.map +0 -1
  560. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/index.js +0 -2
  561. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/index.js.map +0 -1
  562. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useTokenCookie.d.ts +0 -3
  563. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useTokenCookie.d.ts.map +0 -1
  564. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useTokenCookie.js +0 -37
  565. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useTokenCookie.js.map +0 -1
  566. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useUserCookie.d.ts +0 -3
  567. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useUserCookie.d.ts.map +0 -1
  568. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useUserCookie.js +0 -36
  569. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/hooks/useUserCookie.js.map +0 -1
  570. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/index.d.ts +0 -7
  571. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/index.d.ts.map +0 -1
  572. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/index.js +0 -6
  573. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/index.js.map +0 -1
  574. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware/index.d.ts +0 -2
  575. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware/index.d.ts.map +0 -1
  576. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware/index.js +0 -2
  577. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware/index.js.map +0 -1
  578. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware.d.ts +0 -59
  579. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware.d.ts.map +0 -1
  580. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware.js +0 -107
  581. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/middleware.js.map +0 -1
  582. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/providers/NextAuthProvider.d.ts +0 -9
  583. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/providers/NextAuthProvider.d.ts.map +0 -1
  584. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/providers/NextAuthProvider.js +0 -50
  585. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/providers/NextAuthProvider.js.map +0 -1
  586. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/routeHandler.d.ts +0 -18
  587. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/routeHandler.d.ts.map +0 -1
  588. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/routeHandler.js +0 -216
  589. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/routeHandler.js.map +0 -1
  590. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/utils.d.ts +0 -3
  591. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/utils.d.ts.map +0 -1
  592. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/utils.js +0 -5
  593. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/nextjs/utils.js.map +0 -1
  594. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignInButton.d.ts +0 -8
  595. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignInButton.d.ts.map +0 -1
  596. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignInButton.js +0 -10
  597. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignInButton.js.map +0 -1
  598. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignOutButton.d.ts +0 -6
  599. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignOutButton.d.ts.map +0 -1
  600. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignOutButton.js +0 -10
  601. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/SignOutButton.js.map +0 -1
  602. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/UserButton.d.ts +0 -8
  603. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/UserButton.d.ts.map +0 -1
  604. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/UserButton.js +0 -58
  605. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/UserButton.js.map +0 -1
  606. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/index.d.ts +0 -6
  607. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/index.d.ts.map +0 -1
  608. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/index.js +0 -6
  609. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/components/index.js.map +0 -1
  610. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/index.d.ts +0 -9
  611. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/index.d.ts.map +0 -1
  612. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/index.js +0 -9
  613. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/index.js.map +0 -1
  614. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useAuth.d.ts +0 -3
  615. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useAuth.d.ts.map +0 -1
  616. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useAuth.js +0 -12
  617. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useAuth.js.map +0 -1
  618. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useUser.d.ts +0 -4
  619. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useUser.d.ts.map +0 -1
  620. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useUser.js +0 -12
  621. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/hooks/useUser.js.map +0 -1
  622. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/index.d.ts +0 -6
  623. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/index.d.ts.map +0 -1
  624. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/index.js +0 -8
  625. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/index.js.map +0 -1
  626. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/providers/index.d.ts +0 -8
  627. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/providers/index.d.ts.map +0 -1
  628. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/providers/index.js +0 -7
  629. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/reactjs/providers/index.js.map +0 -1
  630. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/ServerAuthenticationResolver.d.ts +0 -18
  631. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/ServerAuthenticationResolver.d.ts.map +0 -1
  632. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/ServerAuthenticationResolver.js +0 -62
  633. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/ServerAuthenticationResolver.js.map +0 -1
  634. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/config.d.ts +0 -16
  635. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/config.d.ts.map +0 -1
  636. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/config.js +0 -2
  637. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/config.js.map +0 -1
  638. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/index.d.ts +0 -6
  639. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/index.d.ts.map +0 -1
  640. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/index.js +0 -5
  641. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/index.js.map +0 -1
  642. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/login.d.ts +0 -17
  643. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/login.d.ts.map +0 -1
  644. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/login.js +0 -37
  645. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/login.js.map +0 -1
  646. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/refresh.d.ts +0 -7
  647. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/refresh.d.ts.map +0 -1
  648. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/refresh.js +0 -13
  649. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/server/refresh.js.map +0 -1
  650. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/AuthenticationService.d.ts +0 -87
  651. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/AuthenticationService.d.ts.map +0 -1
  652. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/AuthenticationService.js +0 -222
  653. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/AuthenticationService.js.map +0 -1
  654. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/PKCE.d.ts +0 -20
  655. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/PKCE.d.ts.map +0 -1
  656. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/PKCE.js +0 -44
  657. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/PKCE.js.map +0 -1
  658. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/types.d.ts +0 -23
  659. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/types.d.ts.map +0 -1
  660. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/types.js +0 -7
  661. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/services/types.js.map +0 -1
  662. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframe.d.ts +0 -8
  663. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframe.d.ts.map +0 -1
  664. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframe.js +0 -9
  665. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframe.js.map +0 -1
  666. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframeContainer.d.ts +0 -9
  667. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframeContainer.d.ts.map +0 -1
  668. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframeContainer.js +0 -92
  669. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CivicAuthIframeContainer.js.map +0 -1
  670. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CloseIcon.d.ts +0 -4
  671. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CloseIcon.d.ts.map +0 -1
  672. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CloseIcon.js +0 -6
  673. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/CloseIcon.js.map +0 -1
  674. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/LoadingIcon.d.ts +0 -4
  675. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/LoadingIcon.d.ts.map +0 -1
  676. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/LoadingIcon.js +0 -8
  677. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/components/LoadingIcon.js.map +0 -1
  678. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/index.d.ts +0 -5
  679. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/index.d.ts.map +0 -1
  680. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/index.js +0 -5
  681. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/index.js.map +0 -1
  682. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useAuth.d.ts +0 -3
  683. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useAuth.d.ts.map +0 -1
  684. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useAuth.js +0 -12
  685. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useAuth.js.map +0 -1
  686. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useConfig.d.ts +0 -3
  687. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useConfig.d.ts.map +0 -1
  688. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useConfig.js +0 -13
  689. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useConfig.js.map +0 -1
  690. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useIframe.d.ts +0 -3
  691. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useIframe.d.ts.map +0 -1
  692. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useIframe.js +0 -13
  693. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useIframe.js.map +0 -1
  694. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useSession.d.ts +0 -3
  695. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useSession.d.ts.map +0 -1
  696. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useSession.js +0 -13
  697. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useSession.js.map +0 -1
  698. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useToken.d.ts +0 -3
  699. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useToken.d.ts.map +0 -1
  700. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useToken.js +0 -12
  701. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/hooks/useToken.js.map +0 -1
  702. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +0 -1
  703. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/GenericAuthenticationRefresher.js +0 -43
  704. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/GenericAuthenticationRefresher.js.map +0 -1
  705. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/UserSession.d.ts +0 -12
  706. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/UserSession.d.ts.map +0 -1
  707. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/UserSession.js +0 -20
  708. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/UserSession.js.map +0 -1
  709. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/session.d.ts +0 -3
  710. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/session.d.ts.map +0 -1
  711. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/session.js +0 -10
  712. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/session.js.map +0 -1
  713. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/storage.d.ts +0 -25
  714. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/storage.d.ts.map +0 -1
  715. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/storage.js +0 -17
  716. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/storage.js.map +0 -1
  717. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/types.d.ts +0 -22
  718. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/types.d.ts.map +0 -1
  719. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/types.js +0 -16
  720. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/types.js.map +0 -1
  721. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/util.d.ts +0 -33
  722. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/util.d.ts.map +0 -1
  723. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/util.js +0 -128
  724. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/lib/util.js.map +0 -1
  725. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthContext.d.ts +0 -10
  726. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthContext.d.ts.map +0 -1
  727. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthContext.js +0 -3
  728. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthContext.js.map +0 -1
  729. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthProvider.d.ts.map +0 -1
  730. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthProvider.js +0 -245
  731. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/AuthProvider.js.map +0 -1
  732. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/CivicAuthProvider.d.ts +0 -6
  733. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/CivicAuthProvider.d.ts.map +0 -1
  734. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/CivicAuthProvider.js +0 -15
  735. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/CivicAuthProvider.js.map +0 -1
  736. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/ConfigProvider.d.ts +0 -21
  737. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/ConfigProvider.d.ts.map +0 -1
  738. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/ConfigProvider.js +0 -19
  739. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/ConfigProvider.js.map +0 -1
  740. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/IframeProvider.d.ts +0 -16
  741. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/IframeProvider.d.ts.map +0 -1
  742. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/IframeProvider.js +0 -11
  743. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/IframeProvider.js.map +0 -1
  744. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/SessionProvider.d.ts +0 -13
  745. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/SessionProvider.d.ts.map +0 -1
  746. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/SessionProvider.js +0 -13
  747. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/SessionProvider.js.map +0 -1
  748. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/TokenProvider.d.ts +0 -18
  749. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/TokenProvider.d.ts.map +0 -1
  750. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/TokenProvider.js +0 -53
  751. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/TokenProvider.js.map +0 -1
  752. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/UserProvider.d.ts +0 -18
  753. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/UserProvider.d.ts.map +0 -1
  754. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/UserProvider.js +0 -38
  755. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/shared/providers/UserProvider.js.map +0 -1
  756. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/types.d.ts +0 -146
  757. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/types.d.ts.map +0 -1
  758. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/types.js +0 -2
  759. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/types.js.map +0 -1
  760. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/utils.d.ts +0 -17
  761. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/utils.d.ts.map +0 -1
  762. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/utils.js +0 -48
  763. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/src/utils.js.map +0 -1
  764. package/.rollup.cache/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/dist/esm/tsconfig.esm.tsbuildinfo +0 -1
  765. package/.turbo/turbo-lint.log +0 -13
  766. package/civic-auth-0.0.1-beta.21.tgz +0 -0
  767. package/dist/cjs/src/nextjs/client/index.d.ts +0 -2
  768. package/dist/cjs/src/nextjs/client/index.d.ts.map +0 -1
  769. package/dist/cjs/src/nextjs/client/index.js +0 -6
  770. package/dist/cjs/src/nextjs/client/index.js.map +0 -1
  771. package/dist/cjs/src/styles.css +0 -387
  772. package/dist/esm/src/nextjs/client/index.d.ts +0 -2
  773. package/dist/esm/src/nextjs/client/index.d.ts.map +0 -1
  774. package/dist/esm/src/nextjs/client/index.js +0 -2
  775. package/dist/esm/src/nextjs/client/index.js.map +0 -1
  776. package/dist/esm/src/styles.css +0 -387
  777. package/dist/src/browser/storage.d.ts +0 -6
  778. package/dist/src/browser/storage.d.ts.map +0 -1
  779. package/dist/src/browser/storage.js +0 -9
  780. package/dist/src/browser/storage.js.map +0 -1
  781. package/dist/src/config.d.ts +0 -3
  782. package/dist/src/config.d.ts.map +0 -1
  783. package/dist/src/config.js +0 -5
  784. package/dist/src/config.js.map +0 -1
  785. package/dist/src/constants.d.ts +0 -9
  786. package/dist/src/constants.d.ts.map +0 -1
  787. package/dist/src/constants.js +0 -17
  788. package/dist/src/constants.js.map +0 -1
  789. package/dist/src/index.d.ts +0 -4
  790. package/dist/src/index.d.ts.map +0 -1
  791. package/dist/src/index.js +0 -2
  792. package/dist/src/index.js.map +0 -1
  793. package/dist/src/lib/cookies.d.ts +0 -7
  794. package/dist/src/lib/cookies.d.ts.map +0 -1
  795. package/dist/src/lib/cookies.js +0 -23
  796. package/dist/src/lib/cookies.js.map +0 -1
  797. package/dist/src/lib/jwt.d.ts +0 -3
  798. package/dist/src/lib/jwt.d.ts.map +0 -1
  799. package/dist/src/lib/jwt.js +0 -9
  800. package/dist/src/lib/jwt.js.map +0 -1
  801. package/dist/src/lib/logger.d.ts +0 -26
  802. package/dist/src/lib/logger.d.ts.map +0 -1
  803. package/dist/src/lib/logger.js +0 -55
  804. package/dist/src/lib/logger.js.map +0 -1
  805. package/dist/src/lib/oauth.d.ts +0 -19
  806. package/dist/src/lib/oauth.d.ts.map +0 -1
  807. package/dist/src/lib/oauth.js +0 -60
  808. package/dist/src/lib/oauth.js.map +0 -1
  809. package/dist/src/lib/postMessage.d.ts +0 -4
  810. package/dist/src/lib/postMessage.d.ts.map +0 -1
  811. package/dist/src/lib/postMessage.js +0 -15
  812. package/dist/src/lib/postMessage.js.map +0 -1
  813. package/dist/src/lib/windowUtil.d.ts +0 -4
  814. package/dist/src/lib/windowUtil.d.ts.map +0 -1
  815. package/dist/src/lib/windowUtil.js +0 -30
  816. package/dist/src/lib/windowUtil.js.map +0 -1
  817. package/dist/src/nextjs/GetUser.d.ts +0 -6
  818. package/dist/src/nextjs/GetUser.js +0 -18
  819. package/dist/src/nextjs/GetUser.js.map +0 -1
  820. package/dist/src/nextjs/client/index.d.ts +0 -2
  821. package/dist/src/nextjs/client/index.d.ts.map +0 -1
  822. package/dist/src/nextjs/client/index.js +0 -2
  823. package/dist/src/nextjs/client/index.js.map +0 -1
  824. package/dist/src/nextjs/config.d.ts +0 -178
  825. package/dist/src/nextjs/cookies.d.ts +0 -30
  826. package/dist/src/nextjs/hooks/index.d.ts +0 -2
  827. package/dist/src/nextjs/hooks/index.d.ts.map +0 -1
  828. package/dist/src/nextjs/hooks/index.js +0 -2
  829. package/dist/src/nextjs/hooks/index.js.map +0 -1
  830. package/dist/src/nextjs/hooks/useTokenCookie.d.ts +0 -3
  831. package/dist/src/nextjs/hooks/useTokenCookie.d.ts.map +0 -1
  832. package/dist/src/nextjs/hooks/useTokenCookie.js +0 -37
  833. package/dist/src/nextjs/hooks/useTokenCookie.js.map +0 -1
  834. package/dist/src/nextjs/hooks/useUserCookie.d.ts +0 -3
  835. package/dist/src/nextjs/hooks/useUserCookie.d.ts.map +0 -1
  836. package/dist/src/nextjs/hooks/useUserCookie.js +0 -36
  837. package/dist/src/nextjs/hooks/useUserCookie.js.map +0 -1
  838. package/dist/src/nextjs/index.d.ts +0 -7
  839. package/dist/src/nextjs/index.js +0 -6
  840. package/dist/src/nextjs/index.js.map +0 -1
  841. package/dist/src/nextjs/middleware/index.d.ts +0 -2
  842. package/dist/src/nextjs/middleware/index.d.ts.map +0 -1
  843. package/dist/src/nextjs/middleware/index.js +0 -2
  844. package/dist/src/nextjs/middleware/index.js.map +0 -1
  845. package/dist/src/nextjs/middleware.d.ts +0 -59
  846. package/dist/src/nextjs/middleware.d.ts.map +0 -1
  847. package/dist/src/nextjs/middleware.js +0 -107
  848. package/dist/src/nextjs/middleware.js.map +0 -1
  849. package/dist/src/nextjs/providers/NextAuthProvider.d.ts +0 -9
  850. package/dist/src/nextjs/providers/NextAuthProvider.js +0 -50
  851. package/dist/src/nextjs/providers/NextAuthProvider.js.map +0 -1
  852. package/dist/src/nextjs/routeHandler.d.ts +0 -18
  853. package/dist/src/nextjs/utils.d.ts +0 -3
  854. package/dist/src/nextjs/utils.d.ts.map +0 -1
  855. package/dist/src/nextjs/utils.js +0 -5
  856. package/dist/src/nextjs/utils.js.map +0 -1
  857. package/dist/src/reactjs/components/SignInButton.d.ts +0 -8
  858. package/dist/src/reactjs/components/SignInButton.d.ts.map +0 -1
  859. package/dist/src/reactjs/components/SignInButton.js +0 -14
  860. package/dist/src/reactjs/components/SignInButton.js.map +0 -1
  861. package/dist/src/reactjs/components/SignOutButton.d.ts +0 -6
  862. package/dist/src/reactjs/components/SignOutButton.d.ts.map +0 -1
  863. package/dist/src/reactjs/components/SignOutButton.js +0 -14
  864. package/dist/src/reactjs/components/SignOutButton.js.map +0 -1
  865. package/dist/src/reactjs/components/UserButton.d.ts +0 -8
  866. package/dist/src/reactjs/components/UserButton.js +0 -110
  867. package/dist/src/reactjs/components/UserButton.js.map +0 -1
  868. package/dist/src/reactjs/components/index.d.ts +0 -6
  869. package/dist/src/reactjs/components/index.js +0 -6
  870. package/dist/src/reactjs/components/index.js.map +0 -1
  871. package/dist/src/reactjs/hooks/useAuth.d.ts +0 -3
  872. package/dist/src/reactjs/hooks/useAuth.d.ts.map +0 -1
  873. package/dist/src/reactjs/hooks/useAuth.js +0 -12
  874. package/dist/src/reactjs/hooks/useAuth.js.map +0 -1
  875. package/dist/src/reactjs/hooks/useUser.d.ts +0 -4
  876. package/dist/src/reactjs/hooks/useUser.d.ts.map +0 -1
  877. package/dist/src/reactjs/hooks/useUser.js +0 -12
  878. package/dist/src/reactjs/hooks/useUser.js.map +0 -1
  879. package/dist/src/reactjs/index.d.ts +0 -6
  880. package/dist/src/reactjs/index.js +0 -8
  881. package/dist/src/reactjs/index.js.map +0 -1
  882. package/dist/src/reactjs/providers/index.d.ts +0 -8
  883. package/dist/src/reactjs/providers/index.js +0 -7
  884. package/dist/src/reactjs/providers/index.js.map +0 -1
  885. package/dist/src/server/ServerAuthenticationResolver.d.ts +0 -18
  886. package/dist/src/server/config.d.ts +0 -16
  887. package/dist/src/server/config.d.ts.map +0 -1
  888. package/dist/src/server/config.js +0 -2
  889. package/dist/src/server/config.js.map +0 -1
  890. package/dist/src/server/index.d.ts +0 -6
  891. package/dist/src/server/index.js +0 -5
  892. package/dist/src/server/index.js.map +0 -1
  893. package/dist/src/server/refresh.d.ts +0 -7
  894. package/dist/src/server/refresh.js +0 -13
  895. package/dist/src/server/refresh.js.map +0 -1
  896. package/dist/src/services/PKCE.d.ts +0 -20
  897. package/dist/src/services/types.d.ts +0 -23
  898. package/dist/src/services/types.d.ts.map +0 -1
  899. package/dist/src/services/types.js +0 -7
  900. package/dist/src/services/types.js.map +0 -1
  901. package/dist/src/shared/components/CivicAuthIframe.d.ts +0 -8
  902. package/dist/src/shared/components/CivicAuthIframe.d.ts.map +0 -1
  903. package/dist/src/shared/components/CivicAuthIframe.js +0 -9
  904. package/dist/src/shared/components/CivicAuthIframe.js.map +0 -1
  905. package/dist/src/shared/components/CloseIcon.d.ts +0 -4
  906. package/dist/src/shared/components/CloseIcon.d.ts.map +0 -1
  907. package/dist/src/shared/components/CloseIcon.js +0 -6
  908. package/dist/src/shared/components/CloseIcon.js.map +0 -1
  909. package/dist/src/shared/components/LoadingIcon.d.ts +0 -4
  910. package/dist/src/shared/hooks/index.d.ts +0 -5
  911. package/dist/src/shared/hooks/index.d.ts.map +0 -1
  912. package/dist/src/shared/hooks/index.js +0 -5
  913. package/dist/src/shared/hooks/index.js.map +0 -1
  914. package/dist/src/shared/hooks/useAuth.d.ts +0 -3
  915. package/dist/src/shared/hooks/useAuth.d.ts.map +0 -1
  916. package/dist/src/shared/hooks/useAuth.js +0 -12
  917. package/dist/src/shared/hooks/useAuth.js.map +0 -1
  918. package/dist/src/shared/hooks/useConfig.d.ts +0 -3
  919. package/dist/src/shared/hooks/useConfig.d.ts.map +0 -1
  920. package/dist/src/shared/hooks/useConfig.js +0 -13
  921. package/dist/src/shared/hooks/useConfig.js.map +0 -1
  922. package/dist/src/shared/hooks/useIframe.d.ts +0 -3
  923. package/dist/src/shared/hooks/useIframe.d.ts.map +0 -1
  924. package/dist/src/shared/hooks/useIframe.js +0 -13
  925. package/dist/src/shared/hooks/useIframe.js.map +0 -1
  926. package/dist/src/shared/hooks/useSession.d.ts +0 -3
  927. package/dist/src/shared/hooks/useSession.d.ts.map +0 -1
  928. package/dist/src/shared/hooks/useSession.js +0 -13
  929. package/dist/src/shared/hooks/useSession.js.map +0 -1
  930. package/dist/src/shared/hooks/useToken.d.ts +0 -3
  931. package/dist/src/shared/hooks/useToken.d.ts.map +0 -1
  932. package/dist/src/shared/hooks/useToken.js +0 -12
  933. package/dist/src/shared/hooks/useToken.js.map +0 -1
  934. package/dist/src/shared/lib/GenericAuthenticationRefresher.d.ts +0 -15
  935. package/dist/src/shared/lib/UserSession.d.ts +0 -12
  936. package/dist/src/shared/lib/session.d.ts +0 -3
  937. package/dist/src/shared/lib/session.js +0 -10
  938. package/dist/src/shared/lib/session.js.map +0 -1
  939. package/dist/src/shared/lib/storage.d.ts +0 -25
  940. package/dist/src/shared/lib/storage.d.ts.map +0 -1
  941. package/dist/src/shared/lib/storage.js +0 -17
  942. package/dist/src/shared/lib/storage.js.map +0 -1
  943. package/dist/src/shared/lib/types.d.ts +0 -22
  944. package/dist/src/shared/lib/types.d.ts.map +0 -1
  945. package/dist/src/shared/lib/types.js +0 -16
  946. package/dist/src/shared/lib/types.js.map +0 -1
  947. package/dist/src/shared/providers/AuthContext.d.ts +0 -10
  948. package/dist/src/shared/providers/AuthContext.d.ts.map +0 -1
  949. package/dist/src/shared/providers/AuthContext.js +0 -3
  950. package/dist/src/shared/providers/AuthContext.js.map +0 -1
  951. package/dist/src/shared/providers/CivicAuthProvider.d.ts +0 -6
  952. package/dist/src/shared/providers/CivicAuthProvider.js +0 -15
  953. package/dist/src/shared/providers/CivicAuthProvider.js.map +0 -1
  954. package/dist/src/shared/providers/ConfigProvider.d.ts +0 -21
  955. package/dist/src/shared/providers/ConfigProvider.d.ts.map +0 -1
  956. package/dist/src/shared/providers/ConfigProvider.js +0 -19
  957. package/dist/src/shared/providers/ConfigProvider.js.map +0 -1
  958. package/dist/src/shared/providers/IframeProvider.d.ts +0 -16
  959. package/dist/src/shared/providers/IframeProvider.d.ts.map +0 -1
  960. package/dist/src/shared/providers/IframeProvider.js +0 -11
  961. package/dist/src/shared/providers/IframeProvider.js.map +0 -1
  962. package/dist/src/shared/providers/SessionProvider.d.ts +0 -13
  963. package/dist/src/shared/providers/SessionProvider.d.ts.map +0 -1
  964. package/dist/src/shared/providers/SessionProvider.js +0 -13
  965. package/dist/src/shared/providers/SessionProvider.js.map +0 -1
  966. package/dist/src/shared/providers/TokenProvider.d.ts +0 -18
  967. package/dist/src/shared/providers/TokenProvider.d.ts.map +0 -1
  968. package/dist/src/shared/providers/TokenProvider.js +0 -53
  969. package/dist/src/shared/providers/TokenProvider.js.map +0 -1
  970. package/dist/src/shared/providers/UserProvider.d.ts +0 -18
  971. package/dist/src/shared/providers/UserProvider.d.ts.map +0 -1
  972. package/dist/src/shared/providers/UserProvider.js +0 -38
  973. package/dist/src/shared/providers/UserProvider.js.map +0 -1
  974. package/dist/src/types.d.ts +0 -146
  975. package/dist/src/types.d.ts.map +0 -1
  976. package/dist/src/types.js +0 -2
  977. package/dist/src/types.js.map +0 -1
  978. package/dist/src/utils.d.ts +0 -15
  979. package/dist/src/utils.d.ts.map +0 -1
  980. package/dist/src/utils.js +0 -43
  981. package/dist/src/utils.js.map +0 -1
  982. package/dist/test/integration/sdk.test.d.ts +0 -2
  983. package/dist/test/integration/sdk.test.js +0 -183
  984. package/dist/test/integration/sdk.test.js.map +0 -1
  985. package/dist/test/support/fixtures.d.ts +0 -26
  986. package/dist/test/support/fixtures.d.ts.map +0 -1
  987. package/dist/test/support/fixtures.js +0 -55
  988. package/dist/test/support/fixtures.js.map +0 -1
  989. package/dist/test/support/tokens.json +0 -26
  990. package/dist/test/unit/lib/oauth.test.d.ts +0 -2
  991. package/dist/test/unit/lib/oauth.test.d.ts.map +0 -1
  992. package/dist/test/unit/lib/oauth.test.js +0 -55
  993. package/dist/test/unit/lib/oauth.test.js.map +0 -1
  994. package/dist/test/unit/logger.test.d.ts +0 -2
  995. package/dist/test/unit/logger.test.d.ts.map +0 -1
  996. package/dist/test/unit/logger.test.js +0 -141
  997. package/dist/test/unit/logger.test.js.map +0 -1
  998. package/dist/test/unit/nextjs/NextAuthProvider.test.d.ts +0 -2
  999. package/dist/test/unit/nextjs/NextAuthProvider.test.js +0 -29
  1000. package/dist/test/unit/nextjs/NextAuthProvider.test.js.map +0 -1
  1001. package/dist/test/unit/nextjs/config.test.d.ts +0 -2
  1002. package/dist/test/unit/nextjs/config.test.d.ts.map +0 -1
  1003. package/dist/test/unit/nextjs/config.test.js +0 -189
  1004. package/dist/test/unit/nextjs/config.test.js.map +0 -1
  1005. package/dist/test/unit/nextjs/getUser.test.d.ts +0 -2
  1006. package/dist/test/unit/nextjs/getUser.test.js +0 -36
  1007. package/dist/test/unit/nextjs/getUser.test.js.map +0 -1
  1008. package/dist/test/unit/nextjs/middleware.test.d.ts +0 -2
  1009. package/dist/test/unit/nextjs/middleware.test.d.ts.map +0 -1
  1010. package/dist/test/unit/nextjs/middleware.test.js +0 -113
  1011. package/dist/test/unit/nextjs/middleware.test.js.map +0 -1
  1012. package/dist/test/unit/nextjs/routeHandler.test.d.ts +0 -2
  1013. package/dist/test/unit/nextjs/routeHandler.test.d.ts.map +0 -1
  1014. package/dist/test/unit/nextjs/routeHandler.test.js +0 -271
  1015. package/dist/test/unit/nextjs/routeHandler.test.js.map +0 -1
  1016. package/dist/test/unit/nextjs/utils.test.d.ts +0 -2
  1017. package/dist/test/unit/nextjs/utils.test.d.ts.map +0 -1
  1018. package/dist/test/unit/nextjs/utils.test.js +0 -13
  1019. package/dist/test/unit/nextjs/utils.test.js.map +0 -1
  1020. package/dist/test/unit/publicApi/apiSnapshot.test.d.ts +0 -2
  1021. package/dist/test/unit/publicApi/apiSnapshot.test.js +0 -10
  1022. package/dist/test/unit/publicApi/apiSnapshot.test.js.map +0 -1
  1023. package/dist/test/unit/react/components/SignInButton.test.d.ts +0 -2
  1024. package/dist/test/unit/react/components/SignInButton.test.js +0 -31
  1025. package/dist/test/unit/react/components/SignInButton.test.js.map +0 -1
  1026. package/dist/test/unit/react/components/SignOutButton.test.d.ts +0 -2
  1027. package/dist/test/unit/react/components/SignOutButton.test.js +0 -30
  1028. package/dist/test/unit/react/components/SignOutButton.test.js.map +0 -1
  1029. package/dist/test/unit/server/login.test.d.ts +0 -2
  1030. package/dist/test/unit/server/session.test.d.ts +0 -2
  1031. package/dist/test/unit/services/AuthenticationService.test.d.ts +0 -2
  1032. package/dist/test/unit/services/ServerAuthenticationResolver.test.d.ts +0 -2
  1033. package/dist/test/unit/shared/GenericAuthenticationRefresher.test.d.ts +0 -2
  1034. package/dist/test/unit/shared/UserSession.test.d.ts +0 -2
  1035. package/dist/test/unit/shared/UserSession.test.d.ts.map +0 -1
  1036. package/dist/test/unit/shared/UserSession.test.js +0 -37
  1037. package/dist/test/unit/shared/UserSession.test.js.map +0 -1
  1038. package/dist/test/unit/shared/components/CivicAuthIframeContainer.test.d.ts +0 -2
  1039. package/dist/test/unit/shared/components/CivicAuthIframeContainer.test.js +0 -120
  1040. package/dist/test/unit/shared/components/CivicAuthIframeContainer.test.js.map +0 -1
  1041. package/dist/test/unit/shared/storage.test.d.ts +0 -2
  1042. package/dist/test/unit/shared/storage.test.d.ts.map +0 -1
  1043. package/dist/test/unit/shared/storage.test.js +0 -53
  1044. package/dist/test/unit/shared/storage.test.js.map +0 -1
  1045. package/dist/test/unit/utils.test.d.ts +0 -2
  1046. package/dist/test/unit/utils.test.d.ts.map +0 -1
  1047. package/dist/test/unit/utils.test.js +0 -40
  1048. package/dist/test/unit/utils.test.js.map +0 -1
  1049. package/dist/vitest.config.d.ts +0 -3
  1050. package/dist/vitest.config.d.ts.map +0 -1
  1051. package/dist/vitest.config.js +0 -40
  1052. package/dist/vitest.config.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,5 +0,0 @@
1
- export { useToken } from "@/shared/hooks/useToken.js";
2
- export { useAuth } from "@/shared/hooks/useAuth.js";
3
- export { useConfig } from "@/shared/hooks/useConfig.js";
4
- export { useIframe } from "@/shared/hooks/useIframe.js";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { useToken } from \"@/shared/hooks/useToken.js\";\nexport { useAuth } from \"@/shared/hooks/useAuth.js\";\nexport { useConfig } from \"@/shared/hooks/useConfig.js\";\nexport { useIframe } from \"@/shared/hooks/useIframe.js\";\n"]}
@@ -1,3 +0,0 @@
1
- declare const useAuth: () => import("@/shared/providers/AuthContext.js").AuthContextType;
2
- export { useAuth };
3
- //# sourceMappingURL=useAuth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useAuth.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,OAAO,mEAQZ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { useContext } from "react";
3
- import { AuthContext } from "@/shared/providers/AuthContext.js";
4
- const useAuth = () => {
5
- const context = useContext(AuthContext);
6
- if (!context) {
7
- throw new Error("useAuth must be used within an AuthProvider");
8
- }
9
- return context;
10
- };
11
- export { useAuth };
12
- //# sourceMappingURL=useAuth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAuth.js","sourceRoot":"","sources":["../../../../../src/shared/hooks/useAuth.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IAExC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["\"use client\";\nimport { useContext } from \"react\";\nimport { AuthContext } from \"@/shared/providers/AuthContext.js\";\n\nconst useAuth = () => {\n const context = useContext(AuthContext);\n\n if (!context) {\n throw new Error(\"useAuth must be used within an AuthProvider\");\n }\n\n return context;\n};\n\nexport { useAuth };\n"]}
@@ -1,3 +0,0 @@
1
- declare const useConfig: () => import("@/shared/providers/ConfigProvider.js").ConfigProviderOutput;
2
- export { useConfig };
3
- //# sourceMappingURL=useConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useConfig.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,2EAMd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { useContext } from "react";
3
- import { ConfigContext } from "@/shared/providers/ConfigProvider.js";
4
- // TokenProvider will use this internal context to access Config
5
- const useConfig = () => {
6
- const context = useContext(ConfigContext);
7
- if (!context) {
8
- throw new Error("useConfig must be used within an ConfigProvider");
9
- }
10
- return context;
11
- };
12
- export { useConfig };
13
- //# sourceMappingURL=useConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConfig.js","sourceRoot":"","sources":["../../../../../src/shared/hooks/useConfig.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,gEAAgE;AAChE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC","sourcesContent":["\"use client\";\nimport { useContext } from \"react\";\nimport { ConfigContext } from \"@/shared/providers/ConfigProvider.js\";\n\n// TokenProvider will use this internal context to access Config\nconst useConfig = () => {\n const context = useContext(ConfigContext);\n if (!context) {\n throw new Error(\"useConfig must be used within an ConfigProvider\");\n }\n return context;\n};\n\nexport { useConfig };\n"]}
@@ -1,3 +0,0 @@
1
- declare const useIframe: () => import("@/shared/providers/IframeProvider.js").IframeProviderOutput;
2
- export { useIframe };
3
- //# sourceMappingURL=useIframe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIframe.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useIframe.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,2EAMd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { useContext } from "react";
3
- import { IframeContext } from "@/shared/providers/IframeProvider.js";
4
- // TokenProvider will use this internal context to access Iframe
5
- const useIframe = () => {
6
- const context = useContext(IframeContext);
7
- if (!context) {
8
- throw new Error("useIframe must be used within an IframeProvider");
9
- }
10
- return context;
11
- };
12
- export { useIframe };
13
- //# sourceMappingURL=useIframe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIframe.js","sourceRoot":"","sources":["../../../../../src/shared/hooks/useIframe.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,gEAAgE;AAChE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC","sourcesContent":["\"use client\";\nimport { useContext } from \"react\";\nimport { IframeContext } from \"@/shared/providers/IframeProvider.js\";\n\n// TokenProvider will use this internal context to access Iframe\nconst useIframe = () => {\n const context = useContext(IframeContext);\n if (!context) {\n throw new Error(\"useIframe must be used within an IframeProvider\");\n }\n return context;\n};\n\nexport { useIframe };\n"]}
@@ -1,3 +0,0 @@
1
- declare const useSession: () => import("../../types.js").SessionData;
2
- export { useSession };
3
- //# sourceMappingURL=useSession.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSession.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useSession.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,UAAU,4CAMf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { useContext } from "react";
3
- import { SessionContext } from "@/shared/providers/SessionProvider.js";
4
- // TokenProvider will use this internal context to access session
5
- const useSession = () => {
6
- const context = useContext(SessionContext);
7
- if (!context) {
8
- throw new Error("useSession must be used within an SessionProvider");
9
- }
10
- return context;
11
- };
12
- export { useSession };
13
- //# sourceMappingURL=useSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSession.js","sourceRoot":"","sources":["../../../../../src/shared/hooks/useSession.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,iEAAiE;AACjE,MAAM,UAAU,GAAG,GAAG,EAAE;IACtB,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["\"use client\";\nimport { useContext } from \"react\";\nimport { SessionContext } from \"@/shared/providers/SessionProvider.js\";\n\n// TokenProvider will use this internal context to access session\nconst useSession = () => {\n const context = useContext(SessionContext);\n if (!context) {\n throw new Error(\"useSession must be used within an SessionProvider\");\n }\n return context;\n};\n\nexport { useSession };\n"]}
@@ -1,3 +0,0 @@
1
- declare const useToken: () => import("@/shared/providers/TokenProvider.js").TokenContextType;
2
- export { useToken };
3
- //# sourceMappingURL=useToken.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useToken.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useToken.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,QAAQ,sEAQb,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { useContext } from "react";
3
- import { TokenContext } from "@/shared/providers/TokenProvider.js";
4
- const useToken = () => {
5
- const context = useContext(TokenContext);
6
- if (!context) {
7
- throw new Error("useToken must be used within a TokenProvider");
8
- }
9
- return context;
10
- };
11
- export { useToken };
12
- //# sourceMappingURL=useToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useToken.js","sourceRoot":"","sources":["../../../../../src/shared/hooks/useToken.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IAEzC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["\"use client\";\nimport { useContext } from \"react\";\nimport { TokenContext } from \"@/shared/providers/TokenProvider.js\";\n\nconst useToken = () => {\n const context = useContext(TokenContext);\n\n if (!context) {\n throw new Error(\"useToken must be used within a TokenProvider\");\n }\n\n return context;\n};\n\nexport { useToken };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenericAuthenticationRefresher.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/GenericAuthenticationRefresher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAMhF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,qBAAa,8BAA+B,YAAW,uBAAuB;IAK1E,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,iBAAiB,CAAC;IAN5B,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,SAAS,CAAwB;IAEzC,OAAO;IAWD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;WAkBd,KAAK,CAChB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,WAAW,EACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GACrC,OAAO,CAAC,8BAA8B,CAAC;IAWpC,aAAa;CAgBpB"}
@@ -1,43 +0,0 @@
1
- import { getEndpointsWithOverrides, retrieveTokens, storeTokens, } from "@/shared/lib/util.js";
2
- import { OAuth2Client } from "oslo/oauth2";
3
- export class GenericAuthenticationRefresher {
4
- authConfig;
5
- storage;
6
- endpointOverrides;
7
- oauth2client;
8
- endpoints;
9
- constructor(authConfig, storage, endpointOverrides) {
10
- this.authConfig = authConfig;
11
- this.storage = storage;
12
- this.endpointOverrides = endpointOverrides;
13
- console.log("GenericAuthenticationRefresher constructor", {
14
- authConfig,
15
- endpointOverrides,
16
- });
17
- }
18
- async init() {
19
- // resolve oauth config
20
- this.endpoints = await getEndpointsWithOverrides(this.authConfig.oauthServer, this.endpointOverrides);
21
- this.oauth2client = new OAuth2Client(this.authConfig.clientId, this.endpoints.auth, this.endpoints.token, {
22
- redirectURI: this.authConfig.redirectUrl,
23
- });
24
- return this;
25
- }
26
- static async build(authConfig, storage, endpointOverrides) {
27
- const refresher = new GenericAuthenticationRefresher(authConfig, storage, endpointOverrides);
28
- await refresher.init();
29
- return refresher;
30
- }
31
- async refreshTokens() {
32
- if (!this.oauth2client)
33
- await this.init();
34
- const tokens = retrieveTokens(this.storage);
35
- if (!tokens?.refresh_token)
36
- throw new Error("No refresh token available");
37
- const oauth2Client = this.oauth2client;
38
- const refreshedTokens = await oauth2Client.refreshAccessToken(tokens.refresh_token);
39
- storeTokens(this.storage, refreshedTokens);
40
- return tokens;
41
- }
42
- }
43
- //# sourceMappingURL=GenericAuthenticationRefresher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenericAuthenticationRefresher.js","sourceRoot":"","sources":["../../../../../src/shared/lib/GenericAuthenticationRefresher.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,OAAO,8BAA8B;IAK/B;IACA;IACA;IANF,YAAY,CAA2B;IACvC,SAAS,CAAwB;IAEzC,YACU,UAAsB,EACtB,OAAoB,EACpB,iBAAsC;QAFtC,eAAU,GAAV,UAAU,CAAY;QACtB,YAAO,GAAP,OAAO,CAAa;QACpB,sBAAiB,GAAjB,iBAAiB,CAAqB;QAE9C,OAAO,CAAC,GAAG,CAAC,4CAA4C,EAAE;YACxD,UAAU;YACV,iBAAiB;SAClB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI;QACR,uBAAuB;QACvB,IAAI,CAAC,SAAS,GAAG,MAAM,yBAAyB,CAC9C,IAAI,CAAC,UAAU,CAAC,WAAW,EAC3B,IAAI,CAAC,iBAAiB,CACvB,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAClC,IAAI,CAAC,UAAU,CAAC,QAAQ,EACxB,IAAI,CAAC,SAAS,CAAC,IAAI,EACnB,IAAI,CAAC,SAAS,CAAC,KAAK,EACpB;YACE,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW;SACzC,CACF,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,KAAK,CAChB,UAAsB,EACtB,OAAoB,EACpB,iBAAsC;QAEtC,MAAM,SAAS,GAAG,IAAI,8BAA8B,CAClD,UAAU,EACV,OAAO,EACP,iBAAiB,CAClB,CAAC;QACF,MAAM,SAAS,CAAC,IAAI,EAAE,CAAC;QAEvB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAE1C,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,MAAM,EAAE,aAAa;YAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAE1E,MAAM,YAAY,GAAG,IAAI,CAAC,YAAa,CAAC;QACxC,MAAM,eAAe,GACnB,MAAM,YAAY,CAAC,kBAAkB,CACnC,MAAM,CAAC,aAAa,CACrB,CAAC;QAEJ,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;QAE3C,OAAO,MAAM,CAAC;IAChB,CAAC;CACF","sourcesContent":["import type { AuthenticationRefresher } from \"@/services/types.js\";\nimport type { AuthStorage, Endpoints, OIDCTokenResponseBody } from \"@/types.js\";\nimport {\n getEndpointsWithOverrides,\n retrieveTokens,\n storeTokens,\n} from \"@/shared/lib/util.js\";\nimport type { AuthConfig } from \"@/server/config.js\";\nimport { OAuth2Client } from \"oslo/oauth2\";\n\nexport class GenericAuthenticationRefresher implements AuthenticationRefresher {\n private oauth2client: OAuth2Client | undefined;\n private endpoints: Endpoints | undefined;\n\n private constructor(\n private authConfig: AuthConfig,\n private storage: AuthStorage,\n private endpointOverrides?: Partial<Endpoints>,\n ) {\n console.log(\"GenericAuthenticationRefresher constructor\", {\n authConfig,\n endpointOverrides,\n });\n }\n\n async init(): Promise<this> {\n // resolve oauth config\n this.endpoints = await getEndpointsWithOverrides(\n this.authConfig.oauthServer,\n this.endpointOverrides,\n );\n this.oauth2client = new OAuth2Client(\n this.authConfig.clientId,\n this.endpoints.auth,\n this.endpoints.token,\n {\n redirectURI: this.authConfig.redirectUrl,\n },\n );\n\n return this;\n }\n\n static async build(\n authConfig: AuthConfig,\n storage: AuthStorage,\n endpointOverrides?: Partial<Endpoints>,\n ): Promise<GenericAuthenticationRefresher> {\n const refresher = new GenericAuthenticationRefresher(\n authConfig,\n storage,\n endpointOverrides,\n );\n await refresher.init();\n\n return refresher;\n }\n\n async refreshTokens() {\n if (!this.oauth2client) await this.init();\n\n const tokens = retrieveTokens(this.storage);\n if (!tokens?.refresh_token) throw new Error(\"No refresh token available\");\n\n const oauth2Client = this.oauth2client!;\n const refreshedTokens =\n await oauth2Client.refreshAccessToken<OIDCTokenResponseBody>(\n tokens.refresh_token,\n );\n\n storeTokens(this.storage, refreshedTokens);\n\n return tokens;\n }\n}\n"]}
@@ -1,12 +0,0 @@
1
- import type { AuthStorage, User } from "@/types.js";
2
- export interface UserSession {
3
- get(): User | null;
4
- set(user: User): void;
5
- }
6
- export declare class GenericUserSession implements UserSession {
7
- readonly storage: AuthStorage;
8
- constructor(storage: AuthStorage);
9
- get(): User | null;
10
- set(user: User | null): void;
11
- }
12
- //# sourceMappingURL=UserSession.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSession.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/UserSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAsB,IAAI,EAAE,MAAM,YAAY,CAAC;AAIxE,MAAM,WAAW,WAAW;IAC1B,GAAG,IAAI,IAAI,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,kBAAmB,YAAW,WAAW;IACxC,QAAQ,CAAC,OAAO,EAAE,WAAW;gBAApB,OAAO,EAAE,WAAW;IAEzC,GAAG,IAAI,IAAI,GAAG,IAAI;IAKlB,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI;CAO7B"}
@@ -1,20 +0,0 @@
1
- import { UserStorage } from "@/shared/lib/types.js";
2
- import { convertForwardedTokenFormat } from "@/lib/jwt.js";
3
- export class GenericUserSession {
4
- storage;
5
- constructor(storage) {
6
- this.storage = storage;
7
- }
8
- get() {
9
- const user = this.storage.get(UserStorage.USER);
10
- return user ? JSON.parse(user) : null;
11
- }
12
- set(user) {
13
- const forwardedTokens = user?.forwardedTokens
14
- ? convertForwardedTokenFormat(user?.forwardedTokens)
15
- : null;
16
- const value = user ? JSON.stringify({ ...user, forwardedTokens }) : "";
17
- this.storage.set(UserStorage.USER, value);
18
- }
19
- }
20
- //# sourceMappingURL=UserSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserSession.js","sourceRoot":"","sources":["../../../../../src/shared/lib/UserSession.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAO3D,MAAM,OAAO,kBAAkB;IACR;IAArB,YAAqB,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IAAG,CAAC;IAE7C,GAAG;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACxC,CAAC;IAED,GAAG,CAAC,IAAiB;QACnB,MAAM,eAAe,GAAG,IAAI,EAAE,eAAe;YAC3C,CAAC,CAAC,2BAA2B,CAAC,IAAI,EAAE,eAAqC,CAAC;YAC1E,CAAC,CAAC,IAAI,CAAC;QACT,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACvE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;CACF","sourcesContent":["import type { AuthStorage, ForwardedTokensJWT, User } from \"@/types.js\";\nimport { UserStorage } from \"@/shared/lib/types.js\";\nimport { convertForwardedTokenFormat } from \"@/lib/jwt.js\";\n\nexport interface UserSession {\n get(): User | null;\n set(user: User): void;\n}\n\nexport class GenericUserSession implements UserSession {\n constructor(readonly storage: AuthStorage) {}\n\n get(): User | null {\n const user = this.storage.get(UserStorage.USER);\n return user ? JSON.parse(user) : null;\n }\n\n set(user: User | null): void {\n const forwardedTokens = user?.forwardedTokens\n ? convertForwardedTokenFormat(user?.forwardedTokens as ForwardedTokensJWT)\n : null;\n const value = user ? JSON.stringify({ ...user, forwardedTokens }) : \"\";\n this.storage.set(UserStorage.USER, value);\n }\n}\n"]}
@@ -1,3 +0,0 @@
1
- import type { AuthStorage, User } from "@/types.js";
2
- export declare function getUser(storage: AuthStorage): Promise<User | null>;
3
- //# sourceMappingURL=session.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEpD,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAMxE"}
@@ -1,10 +0,0 @@
1
- import { retrieveTokens } from "@/shared/lib/util.js";
2
- import { parseJWT } from "oslo/jwt";
3
- export async function getUser(storage) {
4
- const tokens = retrieveTokens(storage);
5
- if (!tokens)
6
- return null;
7
- // Assumes all information is in the ID token
8
- return parseJWT(tokens.id_token)?.payload ?? null;
9
- }
10
- //# sourceMappingURL=session.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../../src/shared/lib/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,OAAoB;IAChD,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IACvC,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,6CAA6C;IAC7C,OAAQ,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAgB,IAAI,IAAI,CAAC;AAC9D,CAAC","sourcesContent":["import { retrieveTokens } from \"@/shared/lib/util.js\";\nimport { parseJWT } from \"oslo/jwt\";\nimport type { AuthStorage, User } from \"@/types.js\";\n\nexport async function getUser(storage: AuthStorage): Promise<User | null> {\n const tokens = retrieveTokens(storage);\n if (!tokens) return null;\n\n // Assumes all information is in the ID token\n return (parseJWT(tokens.id_token)?.payload as User) ?? null;\n}\n"]}
@@ -1,25 +0,0 @@
1
- import type { AuthStorage, SessionData, UnknownObject, User } from "@/types.js";
2
- type SameSiteOption = "strict" | "lax" | "none";
3
- export interface SessionStorage {
4
- get(): SessionData;
5
- getUser(): User<UnknownObject> | null;
6
- set(data: Partial<SessionData>): void;
7
- setUser(data: User<UnknownObject> | null): void;
8
- clear(): void;
9
- }
10
- export type CookieStorageSettings = {
11
- httpOnly: boolean;
12
- secure: boolean;
13
- sameSite: SameSiteOption;
14
- expires: Date;
15
- path: string;
16
- };
17
- export declare const DEFAULT_COOKIE_DURATION: number;
18
- export declare abstract class CookieStorage implements AuthStorage {
19
- protected settings: CookieStorageSettings;
20
- protected constructor(settings?: Partial<CookieStorageSettings>);
21
- abstract get(key: string): string | null;
22
- abstract set(key: string, value: string): void;
23
- }
24
- export {};
25
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEhF,KAAK,cAAc,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,GAAG,IAAI,WAAW,CAAC;IACnB,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IACtC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IACtC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;IAChD,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAU,CAAC;AAE/C,8BAAsB,aAAc,YAAW,WAAW;IACxD,SAAS,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IAC1C,SAAS,aAAa,QAAQ,GAAE,OAAO,CAAC,qBAAqB,CAAM;IAanE,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IACxC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAC/C"}
@@ -1,17 +0,0 @@
1
- export const DEFAULT_COOKIE_DURATION = 60 * 15; // 15 minutes
2
- export class CookieStorage {
3
- settings;
4
- constructor(settings = {}) {
5
- this.settings = {
6
- httpOnly: settings.httpOnly ?? true,
7
- secure: settings.secure ?? true,
8
- // the callback request comes the auth server
9
- // 'lax' ensures the code_verifier cookie is sent with the request
10
- sameSite: settings.sameSite ?? "lax",
11
- expires: settings.expires ??
12
- new Date(Date.now() + 1000 * DEFAULT_COOKIE_DURATION),
13
- path: settings.path ?? "/",
14
- };
15
- }
16
- }
17
- //# sourceMappingURL=storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../../src/shared/lib/storage.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa;AAE7D,MAAM,OAAgB,aAAa;IACvB,QAAQ,CAAwB;IAC1C,YAAsB,WAA2C,EAAE;QACjE,IAAI,CAAC,QAAQ,GAAG;YACd,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,IAAI;YACnC,MAAM,EAAE,QAAQ,CAAC,MAAM,IAAI,IAAI;YAC/B,6CAA6C;YAC7C,kEAAkE;YAClE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,KAAK;YACpC,OAAO,EACL,QAAQ,CAAC,OAAO;gBAChB,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,uBAAuB,CAAC;YACvD,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,GAAG;SAC3B,CAAC;IACJ,CAAC;CAGF","sourcesContent":["import type { AuthStorage, SessionData, UnknownObject, User } from \"@/types.js\";\n\ntype SameSiteOption = \"strict\" | \"lax\" | \"none\";\n\nexport interface SessionStorage {\n get(): SessionData;\n getUser(): User<UnknownObject> | null;\n set(data: Partial<SessionData>): void;\n setUser(data: User<UnknownObject> | null): void;\n clear(): void;\n}\n\nexport type CookieStorageSettings = {\n httpOnly: boolean;\n secure: boolean;\n sameSite: SameSiteOption;\n expires: Date;\n path: string;\n};\n\nexport const DEFAULT_COOKIE_DURATION = 60 * 15; // 15 minutes\n\nexport abstract class CookieStorage implements AuthStorage {\n protected settings: CookieStorageSettings;\n protected constructor(settings: Partial<CookieStorageSettings> = {}) {\n this.settings = {\n httpOnly: settings.httpOnly ?? true,\n secure: settings.secure ?? true,\n // the callback request comes the auth server\n // 'lax' ensures the code_verifier cookie is sent with the request\n sameSite: settings.sameSite ?? \"lax\",\n expires:\n settings.expires ??\n new Date(Date.now() + 1000 * DEFAULT_COOKIE_DURATION),\n path: settings.path ?? \"/\",\n };\n }\n abstract get(key: string): string | null;\n abstract set(key: string, value: string): void;\n}\n"]}
@@ -1,22 +0,0 @@
1
- export declare enum OAuthTokens {
2
- ID_TOKEN = "id_token",
3
- ACCESS_TOKEN = "access_token",
4
- REFRESH_TOKEN = "refresh_token"
5
- }
6
- export declare enum CodeVerifier {
7
- COOKIE_NAME = "code_verifier",
8
- APP_URL = "app_url"
9
- }
10
- export declare enum UserStorage {
11
- USER = "user"
12
- }
13
- export interface CookieConfig {
14
- secure?: boolean;
15
- sameSite?: "strict" | "lax" | "none";
16
- domain?: string;
17
- path?: string;
18
- maxAge?: number;
19
- httpOnly?: boolean;
20
- }
21
- export type TokensCookieConfig = Record<OAuthTokens | CodeVerifier, CookieConfig>;
22
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,YAAY;IACtB,WAAW,kBAAkB;IAC7B,OAAO,YAAY;CACpB;AACD,oBAAY,WAAW;IACrB,IAAI,SAAS;CACd;AACD,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,WAAW,GAAG,YAAY,EAC1B,YAAY,CACb,CAAC"}
@@ -1,16 +0,0 @@
1
- export var OAuthTokens;
2
- (function (OAuthTokens) {
3
- OAuthTokens["ID_TOKEN"] = "id_token";
4
- OAuthTokens["ACCESS_TOKEN"] = "access_token";
5
- OAuthTokens["REFRESH_TOKEN"] = "refresh_token";
6
- })(OAuthTokens || (OAuthTokens = {}));
7
- export var CodeVerifier;
8
- (function (CodeVerifier) {
9
- CodeVerifier["COOKIE_NAME"] = "code_verifier";
10
- CodeVerifier["APP_URL"] = "app_url";
11
- })(CodeVerifier || (CodeVerifier = {}));
12
- export var UserStorage;
13
- (function (UserStorage) {
14
- UserStorage["USER"] = "user";
15
- })(UserStorage || (UserStorage = {}));
16
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/shared/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,8CAA+B,CAAA;AACjC,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AACD,MAAM,CAAN,IAAY,WAEX;AAFD,WAAY,WAAW;IACrB,4BAAa,CAAA;AACf,CAAC,EAFW,WAAW,KAAX,WAAW,QAEtB","sourcesContent":["export enum OAuthTokens {\n ID_TOKEN = \"id_token\",\n ACCESS_TOKEN = \"access_token\",\n REFRESH_TOKEN = \"refresh_token\",\n}\n\nexport enum CodeVerifier {\n COOKIE_NAME = \"code_verifier\",\n APP_URL = \"app_url\",\n}\nexport enum UserStorage {\n USER = \"user\",\n}\nexport interface CookieConfig {\n secure?: boolean;\n sameSite?: \"strict\" | \"lax\" | \"none\";\n domain?: string;\n path?: string;\n maxAge?: number;\n httpOnly?: boolean;\n}\n\nexport type TokensCookieConfig = Record<\n OAuthTokens | CodeVerifier,\n CookieConfig\n>;\n"]}
@@ -1,33 +0,0 @@
1
- import type { AuthStorage, Endpoints, OIDCTokenResponseBody, ParsedTokens } from "@/types.js";
2
- import { OAuth2Client } from "oslo/oauth2";
3
- import type { PKCEConsumer, PKCEProducer } from "@/services/types.js";
4
- /**
5
- * Given a PKCE code verifier, derive the code challenge using SHA
6
- */
7
- export declare function deriveCodeChallenge(codeVerifier: string, method?: "Plain" | "S256"): Promise<string>;
8
- export declare function getEndpointsWithOverrides(oauthServer: string, endpointOverrides?: Partial<Endpoints>): Promise<Endpoints>;
9
- export declare function generateOauthLoginUrl(config: {
10
- clientId: string;
11
- scopes: string[];
12
- state: string;
13
- redirectUrl: string;
14
- oauthServer: string;
15
- nonce?: string;
16
- endpointOverrides?: Partial<Endpoints>;
17
- pkceConsumer: PKCEConsumer;
18
- }): Promise<URL>;
19
- export declare function generateOauthLogoutUrl(config: {
20
- clientId: string;
21
- scopes: string[];
22
- oauthServer: string;
23
- endpointOverrides?: Partial<Endpoints>;
24
- pkceConsumer: PKCEConsumer;
25
- }): Promise<URL>;
26
- export declare function buildOauth2Client(clientId: string, redirectUri: string, endpoints: Endpoints): OAuth2Client;
27
- export declare function exchangeTokens(code: string, state: string, pkceProducer: PKCEProducer, oauth2Client: OAuth2Client, oauthServer: string, endpoints: Endpoints): Promise<OIDCTokenResponseBody>;
28
- export declare function storeTokens(storage: AuthStorage, tokens: OIDCTokenResponseBody): void;
29
- export declare function clearTokens(storage: AuthStorage): void;
30
- export declare function clearUser(storage: AuthStorage): void;
31
- export declare function retrieveTokens(storage: AuthStorage): OIDCTokenResponseBody | null;
32
- export declare function validateOauth2Tokens(tokens: OIDCTokenResponseBody, endpoints: Endpoints, oauth2Client: OAuth2Client, issuer: string): Promise<ParsedTokens>;
33
- //# sourceMappingURL=util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/util.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EAET,qBAAqB,EACrB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGtE;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,EACpB,MAAM,GAAE,OAAO,GAAG,MAAe,GAChC,OAAO,CAAC,MAAM,CAAC,CAajB;AAED,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,MAAM,EACnB,iBAAiB,GAAE,OAAO,CAAC,SAAS,CAAM,GACzC,OAAO,CAAC,SAAS,CAAC,CAMpB;AAED,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEvC,YAAY,EAAE,YAAY,CAAC;CAC5B,GAAG,OAAO,CAAC,GAAG,CAAC,CA4Bf;AAED,wBAAsB,sBAAsB,CAAC,MAAM,EAAE;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEvC,YAAY,EAAE,YAAY,CAAC;CAC5B,GAAG,OAAO,CAAC,GAAG,CAAC,CAIf;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,SAAS,GACnB,YAAY,CAId;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,SAAS,kCAqBrB;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,qBAAqB,QAO9B;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,QAO/C;AACD,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,QAG7C;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,WAAW,GACnB,qBAAqB,GAAG,IAAI,CAY9B;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,qBAAqB,EAC7B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,YAAY,CAAC,CA2BvB"}
@@ -1,128 +0,0 @@
1
- // Utility functions shared by auth server and client integrations
2
- // Typically these functions should be used inside AuthenticationInitiator and AuthenticationResolver implementations
3
- import { CodeVerifier, OAuthTokens } from "./types.js";
4
- import { OAuth2Client } from "oslo/oauth2";
5
- import { getIssuerVariations, getOauthEndpoints } from "@/lib/oauth.js";
6
- import * as jose from "jose";
7
- import { withoutUndefined } from "@/utils.js";
8
- import { GenericUserSession } from "@/shared/lib/UserSession.js";
9
- /**
10
- * Given a PKCE code verifier, derive the code challenge using SHA
11
- */
12
- export async function deriveCodeChallenge(codeVerifier, method = "S256") {
13
- if (method === "Plain") {
14
- console.warn("Using insecure plain code challenge method");
15
- return codeVerifier;
16
- }
17
- const encoder = new TextEncoder();
18
- const data = encoder.encode(codeVerifier);
19
- const digest = await crypto.subtle.digest("SHA-256", data);
20
- return btoa(String.fromCharCode(...new Uint8Array(digest)))
21
- .replace(/\+/g, "-")
22
- .replace(/\//g, "_")
23
- .replace(/=+$/, "");
24
- }
25
- export async function getEndpointsWithOverrides(oauthServer, endpointOverrides = {}) {
26
- const endpoints = await getOauthEndpoints(oauthServer);
27
- return {
28
- ...endpoints,
29
- ...endpointOverrides,
30
- };
31
- }
32
- export async function generateOauthLoginUrl(config) {
33
- const endpoints = await getEndpointsWithOverrides(config.oauthServer, config.endpointOverrides);
34
- const oauth2Client = buildOauth2Client(config.clientId, config.redirectUrl, endpoints);
35
- const challenge = await config.pkceConsumer.getCodeChallenge();
36
- const oAuthUrl = await oauth2Client.createAuthorizationURL({
37
- state: config.state,
38
- scopes: config.scopes,
39
- });
40
- // The OAuth2 client supports PKCE, but does not allow passing in a code challenge from some other source
41
- // It only allows passing in a code verifier which it then hashes itself.
42
- oAuthUrl.searchParams.append("code_challenge", challenge);
43
- oAuthUrl.searchParams.append("code_challenge_method", "S256");
44
- if (config.nonce) {
45
- // nonce isn't supported by oslo, so we add it manually
46
- oAuthUrl.searchParams.append("nonce", config.nonce);
47
- }
48
- // Required by the auth server for offline_access scope
49
- oAuthUrl.searchParams.append("prompt", "consent");
50
- console.log("Generated OAuth URL", oAuthUrl.toString());
51
- return oAuthUrl;
52
- }
53
- export async function generateOauthLogoutUrl(config) {
54
- // TODO TECH-676: Implement logout
55
- console.log("generateOauthLogoutUrl not implemented", config);
56
- return new URL("http://localhost");
57
- }
58
- export function buildOauth2Client(clientId, redirectUri, endpoints) {
59
- return new OAuth2Client(clientId, endpoints.auth, endpoints.token, {
60
- redirectURI: redirectUri,
61
- });
62
- }
63
- export async function exchangeTokens(code, state, pkceProducer, oauth2Client, oauthServer, endpoints) {
64
- const codeVerifier = await pkceProducer.getCodeVerifier();
65
- if (!codeVerifier)
66
- throw new Error("Code verifier not found in state");
67
- const tokens = await oauth2Client.validateAuthorizationCode(code, {
68
- codeVerifier,
69
- });
70
- // Validate relevant tokens
71
- try {
72
- await validateOauth2Tokens(tokens, endpoints, oauth2Client, oauthServer);
73
- }
74
- catch (error) {
75
- console.error("tokenExchange error", { error, tokens });
76
- throw new Error(`OIDC tokens validation failed: ${error.message}`);
77
- }
78
- return tokens;
79
- }
80
- export function storeTokens(storage, tokens) {
81
- // store tokens in storage ( TODO we should probably store them against the state to allow multiple logins )
82
- storage.set(OAuthTokens.ID_TOKEN, tokens.id_token);
83
- storage.set(OAuthTokens.ACCESS_TOKEN, tokens.access_token);
84
- if (tokens.refresh_token)
85
- storage.set(OAuthTokens.REFRESH_TOKEN, tokens.refresh_token);
86
- }
87
- export function clearTokens(storage) {
88
- Object.values(OAuthTokens).forEach((cookie) => {
89
- storage.set(cookie, "");
90
- });
91
- Object.values(CodeVerifier.COOKIE_NAME).forEach((cookie) => {
92
- storage.set(cookie, "");
93
- });
94
- }
95
- export function clearUser(storage) {
96
- const userSession = new GenericUserSession(storage);
97
- userSession.set(null);
98
- }
99
- export function retrieveTokens(storage) {
100
- const idToken = storage.get(OAuthTokens.ID_TOKEN);
101
- const accessToken = storage.get(OAuthTokens.ACCESS_TOKEN);
102
- const refreshToken = storage.get(OAuthTokens.REFRESH_TOKEN);
103
- if (!idToken || !accessToken)
104
- return null;
105
- return {
106
- id_token: idToken,
107
- access_token: accessToken,
108
- refresh_token: refreshToken ?? undefined,
109
- };
110
- }
111
- export async function validateOauth2Tokens(tokens, endpoints, oauth2Client, issuer) {
112
- const JWKS = jose.createRemoteJWKSet(new URL(endpoints.jwks));
113
- // validate the ID token
114
- const idTokenResponse = await jose.jwtVerify(tokens.id_token, JWKS, {
115
- issuer: getIssuerVariations(issuer),
116
- audience: oauth2Client.clientId,
117
- });
118
- // validate the access token
119
- const accessTokenResponse = await jose.jwtVerify(tokens.access_token, JWKS, {
120
- issuer: getIssuerVariations(issuer),
121
- });
122
- return withoutUndefined({
123
- id_token: idTokenResponse.payload,
124
- access_token: accessTokenResponse.payload,
125
- refresh_token: tokens.refresh_token,
126
- });
127
- }
128
- //# sourceMappingURL=util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../../src/shared/lib/util.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,qHAAqH;AAWrH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,YAAoB,EACpB,SAA2B,MAAM;IAEjC,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC;QAC3D,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;SACxD,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACxB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,WAAmB,EACnB,oBAAwC,EAAE;IAE1C,MAAM,SAAS,GAAG,MAAM,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACvD,OAAO;QACL,GAAG,SAAS;QACZ,GAAG,iBAAiB;KACrB,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,MAU3C;IACC,MAAM,SAAS,GAAG,MAAM,yBAAyB,CAC/C,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,iBAAiB,CACzB,CAAC;IACF,MAAM,YAAY,GAAG,iBAAiB,CACpC,MAAM,CAAC,QAAQ,EACf,MAAM,CAAC,WAAW,EAClB,SAAS,CACV,CAAC;IACF,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;IAC/D,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,sBAAsB,CAAC;QACzD,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CAAC;IACH,yGAAyG;IACzG,yEAAyE;IACzE,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAC1D,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;IAC9D,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,uDAAuD;QACvD,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;IACD,uDAAuD;IACvD,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAElD,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,MAO5C;IACC,kCAAkC;IAClC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IAC9D,OAAO,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,QAAgB,EAChB,WAAmB,EACnB,SAAoB;IAEpB,OAAO,IAAI,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE;QACjE,WAAW,EAAE,WAAW;KACzB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,IAAY,EACZ,KAAa,EACb,YAA0B,EAC1B,YAA0B,EAC1B,WAAmB,EACnB,SAAoB;IAEpB,MAAM,YAAY,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAC;IAC1D,IAAI,CAAC,YAAY;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAEvE,MAAM,MAAM,GACV,MAAM,YAAY,CAAC,yBAAyB,CAAwB,IAAI,EAAE;QACxE,YAAY;KACb,CAAC,CAAC;IAEL,2BAA2B;IAC3B,IAAI,CAAC;QACH,MAAM,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IAC3E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QACxD,MAAM,IAAI,KAAK,CACb,kCAAmC,KAAe,CAAC,OAAO,EAAE,CAC7D,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,WAAW,CACzB,OAAoB,EACpB,MAA6B;IAE7B,4GAA4G;IAC5G,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnD,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3D,IAAI,MAAM,CAAC,aAAa;QACtB,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAoB;IAC9C,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACzD,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,SAAS,CAAC,OAAoB;IAC5C,MAAM,WAAW,GAAG,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACpD,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,OAAoB;IAEpB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAC1D,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAE5D,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW;QAAE,OAAO,IAAI,CAAC;IAE1C,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY,IAAI,SAAS;KACzC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAA6B,EAC7B,SAAoB,EACpB,YAA0B,EAC1B,MAAc;IAEd,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAE9D,wBAAwB;IACxB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,SAAS,CAC1C,MAAM,CAAC,QAAQ,EACf,IAAI,EACJ;QACE,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAC;QACnC,QAAQ,EAAE,YAAY,CAAC,QAAQ;KAChC,CACF,CAAC;IAEF,4BAA4B;IAC5B,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,SAAS,CAC9C,MAAM,CAAC,YAAY,EACnB,IAAI,EACJ;QACE,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAC;KACpC,CACF,CAAC;IAEF,OAAO,gBAAgB,CAAC;QACtB,QAAQ,EAAE,eAAe,CAAC,OAAO;QACjC,YAAY,EAAE,mBAAmB,CAAC,OAAO;QACzC,aAAa,EAAE,MAAM,CAAC,aAAa;KACpC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Utility functions shared by auth server and client integrations\n// Typically these functions should be used inside AuthenticationInitiator and AuthenticationResolver implementations\n\n// Utility functions shared by auth server and client integrations\n// Typically these functions should be used inside AuthenticationInitiator and AuthenticationResolver implementations\nimport type {\n AuthStorage,\n Endpoints,\n JWTPayload,\n OIDCTokenResponseBody,\n ParsedTokens,\n} from \"@/types.js\";\nimport { CodeVerifier, OAuthTokens } from \"./types.js\";\nimport { OAuth2Client } from \"oslo/oauth2\";\nimport { getIssuerVariations, getOauthEndpoints } from \"@/lib/oauth.js\";\nimport * as jose from \"jose\";\nimport { withoutUndefined } from \"@/utils.js\";\nimport type { PKCEConsumer, PKCEProducer } from \"@/services/types.js\";\nimport { GenericUserSession } from \"@/shared/lib/UserSession.js\";\n\n/**\n * Given a PKCE code verifier, derive the code challenge using SHA\n */\nexport async function deriveCodeChallenge(\n codeVerifier: string,\n method: \"Plain\" | \"S256\" = \"S256\",\n): Promise<string> {\n if (method === \"Plain\") {\n console.warn(\"Using insecure plain code challenge method\");\n return codeVerifier;\n }\n\n const encoder = new TextEncoder();\n const data = encoder.encode(codeVerifier);\n const digest = await crypto.subtle.digest(\"SHA-256\", data);\n return btoa(String.fromCharCode(...new Uint8Array(digest)))\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n}\n\nexport async function getEndpointsWithOverrides(\n oauthServer: string,\n endpointOverrides: Partial<Endpoints> = {},\n): Promise<Endpoints> {\n const endpoints = await getOauthEndpoints(oauthServer);\n return {\n ...endpoints,\n ...endpointOverrides,\n };\n}\n\nexport async function generateOauthLoginUrl(config: {\n clientId: string;\n scopes: string[];\n state: string;\n redirectUrl: string;\n oauthServer: string;\n nonce?: string;\n endpointOverrides?: Partial<Endpoints>;\n // used to get the PKCE challenge\n pkceConsumer: PKCEConsumer;\n}): Promise<URL> {\n const endpoints = await getEndpointsWithOverrides(\n config.oauthServer,\n config.endpointOverrides,\n );\n const oauth2Client = buildOauth2Client(\n config.clientId,\n config.redirectUrl,\n endpoints,\n );\n const challenge = await config.pkceConsumer.getCodeChallenge();\n const oAuthUrl = await oauth2Client.createAuthorizationURL({\n state: config.state,\n scopes: config.scopes,\n });\n // The OAuth2 client supports PKCE, but does not allow passing in a code challenge from some other source\n // It only allows passing in a code verifier which it then hashes itself.\n oAuthUrl.searchParams.append(\"code_challenge\", challenge);\n oAuthUrl.searchParams.append(\"code_challenge_method\", \"S256\");\n if (config.nonce) {\n // nonce isn't supported by oslo, so we add it manually\n oAuthUrl.searchParams.append(\"nonce\", config.nonce);\n }\n // Required by the auth server for offline_access scope\n oAuthUrl.searchParams.append(\"prompt\", \"consent\");\n\n console.log(\"Generated OAuth URL\", oAuthUrl.toString());\n return oAuthUrl;\n}\n\nexport async function generateOauthLogoutUrl(config: {\n clientId: string;\n scopes: string[];\n oauthServer: string;\n endpointOverrides?: Partial<Endpoints>;\n // used to get the PKCE challenge\n pkceConsumer: PKCEConsumer;\n}): Promise<URL> {\n // TODO TECH-676: Implement logout\n console.log(\"generateOauthLogoutUrl not implemented\", config);\n return new URL(\"http://localhost\");\n}\n\nexport function buildOauth2Client(\n clientId: string,\n redirectUri: string,\n endpoints: Endpoints,\n): OAuth2Client {\n return new OAuth2Client(clientId, endpoints.auth, endpoints.token, {\n redirectURI: redirectUri,\n });\n}\n\nexport async function exchangeTokens(\n code: string,\n state: string,\n pkceProducer: PKCEProducer,\n oauth2Client: OAuth2Client,\n oauthServer: string,\n endpoints: Endpoints,\n) {\n const codeVerifier = await pkceProducer.getCodeVerifier();\n if (!codeVerifier) throw new Error(\"Code verifier not found in state\");\n\n const tokens =\n await oauth2Client.validateAuthorizationCode<OIDCTokenResponseBody>(code, {\n codeVerifier,\n });\n\n // Validate relevant tokens\n try {\n await validateOauth2Tokens(tokens, endpoints, oauth2Client, oauthServer);\n } catch (error) {\n console.error(\"tokenExchange error\", { error, tokens });\n throw new Error(\n `OIDC tokens validation failed: ${(error as Error).message}`,\n );\n }\n\n return tokens;\n}\n\nexport function storeTokens(\n storage: AuthStorage,\n tokens: OIDCTokenResponseBody,\n) {\n // store tokens in storage ( TODO we should probably store them against the state to allow multiple logins )\n storage.set(OAuthTokens.ID_TOKEN, tokens.id_token);\n storage.set(OAuthTokens.ACCESS_TOKEN, tokens.access_token);\n if (tokens.refresh_token)\n storage.set(OAuthTokens.REFRESH_TOKEN, tokens.refresh_token);\n}\n\nexport function clearTokens(storage: AuthStorage) {\n Object.values(OAuthTokens).forEach((cookie) => {\n storage.set(cookie, \"\");\n });\n Object.values(CodeVerifier.COOKIE_NAME).forEach((cookie) => {\n storage.set(cookie, \"\");\n });\n}\nexport function clearUser(storage: AuthStorage) {\n const userSession = new GenericUserSession(storage);\n userSession.set(null);\n}\n\nexport function retrieveTokens(\n storage: AuthStorage,\n): OIDCTokenResponseBody | null {\n const idToken = storage.get(OAuthTokens.ID_TOKEN);\n const accessToken = storage.get(OAuthTokens.ACCESS_TOKEN);\n const refreshToken = storage.get(OAuthTokens.REFRESH_TOKEN);\n\n if (!idToken || !accessToken) return null;\n\n return {\n id_token: idToken,\n access_token: accessToken,\n refresh_token: refreshToken ?? undefined,\n };\n}\n\nexport async function validateOauth2Tokens(\n tokens: OIDCTokenResponseBody,\n endpoints: Endpoints,\n oauth2Client: OAuth2Client,\n issuer: string,\n): Promise<ParsedTokens> {\n const JWKS = jose.createRemoteJWKSet(new URL(endpoints.jwks));\n\n // validate the ID token\n const idTokenResponse = await jose.jwtVerify<JWTPayload>(\n tokens.id_token,\n JWKS,\n {\n issuer: getIssuerVariations(issuer),\n audience: oauth2Client.clientId,\n },\n );\n\n // validate the access token\n const accessTokenResponse = await jose.jwtVerify<JWTPayload>(\n tokens.access_token,\n JWKS,\n {\n issuer: getIssuerVariations(issuer),\n },\n );\n\n return withoutUndefined({\n id_token: idTokenResponse.payload,\n access_token: accessTokenResponse.payload,\n refresh_token: tokens.refresh_token,\n });\n}\n"]}
@@ -1,10 +0,0 @@
1
- import type { DisplayMode } from "@/types.js";
2
- export type AuthContextType = {
3
- signIn: (displayMode?: DisplayMode) => Promise<void>;
4
- isAuthenticated: boolean;
5
- isLoading: boolean;
6
- error: Error | null;
7
- signOut: () => Promise<void>;
8
- };
9
- export declare const AuthContext: import("react").Context<AuthContextType | null>;
10
- //# sourceMappingURL=AuthContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/AuthContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AACF,eAAO,MAAM,WAAW,iDAA8C,CAAC"}