@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":"AuthenticationService.d.ts","sourceRoot":"","sources":["../../../../src/services/AuthenticationService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EAET,qBAAqB,EACrB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAerE,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACb,MAAM,qBAAqB,CAAC;AAM7B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,8BAA+B,YAAW,uBAAuB;IAC5E,OAAO,CAAC,kBAAkB,CAAgD;IAE1E,SAAS,CAA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pB,iBAAiB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACvC,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,8BAA8B;IAQ5E,SAAS,CAAC,YAAY;IAPxB,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,SAAS,CAAwB;gBAIvC,MAAM,EAAE,2BAA2B,EAEzB,YAAY,kCAAwC;IAgB1D,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBrB,aAAa,CACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,qBAAqB,CAAC;IAiC3B,cAAc,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAa7C,uBAAuB,IAAI,OAAO,CAAC,WAAW,CAAC;WAgCxC,KAAK,CAChB,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,sBAAsB,CAAC;CAMnC"}
@@ -1,222 +0,0 @@
1
- // Proposals for revised versions of the SessionService AKA AuthSessionService
2
- import { BrowserPublicClientPKCEProducer } from "@/services/PKCE.js";
3
- import { clearTokens, clearUser, exchangeTokens, generateOauthLoginUrl, generateOauthLogoutUrl, getEndpointsWithOverrides, retrieveTokens, storeTokens, validateOauth2Tokens, } from "@/shared/lib/util.js";
4
- import { displayModeFromState, generateState } from "@/lib/oauth.js";
5
- import { OAuth2Client } from "oslo/oauth2";
6
- import { LocalStorageAdapter } from "@/browser/storage.js";
7
- import { PopupError } from "@/services/types.js";
8
- import { removeParamsWithoutReload } from "@/lib/windowUtil.js";
9
- import { DEFAULT_OAUTH_GET_PARAMS } from "@/constants.js";
10
- import { validateLoginAppPostMessage } from "@/lib/postMessage.js";
11
- /**
12
- * An authentication initiator that works on a browser. Since this is just triggering
13
- * login and logout, session data is not stored here.
14
- * An associated AuthenticationResolver would be needed to get the session data.
15
- * Storage is needed for the code verifier, this is the domain of the PKCEConsumer
16
- * The storage used by the PKCEConsumer should be available to the AuthenticationResolver.
17
- *
18
- * Example usage:
19
- *
20
- * 1) Client-only SPA -eg a react app with no server:
21
- * new BrowserAuthenticationInitiator({
22
- * pkceConsumer: new BrowserPublicClientPKCEProducer(), // generate and retrieve the challenge client-side
23
- * ... other config
24
- * })
25
- *
26
- * 2) Client-side of a client/server app - eg a react app with a backend:
27
- * new BrowserAuthenticationInitiator({
28
- * pkceConsumer: new ConfidentialClientPKCEConsumer("https://myserver.com/pkce"), // get the challenge from the server
29
- * ... other config
30
- * })
31
- */
32
- export class BrowserAuthenticationInitiator {
33
- postMessageHandler = null;
34
- config;
35
- constructor(config) {
36
- this.config = config;
37
- console.log("BrowserAuthenticationInitiator constructor", this.config);
38
- }
39
- async handleLoginAppPopupFailed(redirectUrl) {
40
- console.warn("Login app popup failed open a popup, using redirect mode instead...", redirectUrl);
41
- window.location.href = redirectUrl;
42
- }
43
- // Use the config (Client ID, scopes OAuth Server, Endpoints, PKCEConsumer) to generate a new login url
44
- // and then use the display mode to decide how to send the user there
45
- async signIn(iframeRef) {
46
- const url = await generateOauthLoginUrl(this.config);
47
- this.postMessageHandler = (event) => {
48
- const thisURL = new URL(window.location.href);
49
- if (event.origin.endsWith("civic.com") ||
50
- thisURL.hostname === "localhost") {
51
- if (!validateLoginAppPostMessage(event.data, this.config.clientId)) {
52
- console.log("Received invalid message from login app", event.data);
53
- return;
54
- }
55
- const loginMessage = event.data;
56
- console.log("Received message from login app", event.data);
57
- this.handleLoginAppPopupFailed(loginMessage.data.url);
58
- }
59
- };
60
- window.addEventListener("message", this.postMessageHandler);
61
- if (this.config.displayMode === "iframe") {
62
- if (!iframeRef)
63
- throw new Error("iframeRef is required for displayMode 'iframe'");
64
- iframeRef.setAttribute("src", url.toString());
65
- }
66
- if (this.config.displayMode === "redirect") {
67
- window.location.href = url.toString();
68
- }
69
- if (this.config.displayMode === "new_tab") {
70
- try {
71
- const popupWindow = window.open(url.toString(), "_blank");
72
- console.log("signIn", popupWindow);
73
- if (!popupWindow) {
74
- throw new PopupError("Failed to open popup window");
75
- }
76
- }
77
- catch (error) {
78
- console.error("popupWindow", error);
79
- throw new PopupError("window.open has thrown: Failed to open popup window");
80
- }
81
- }
82
- return url;
83
- }
84
- async signOut() {
85
- const localStorage = new LocalStorageAdapter();
86
- clearTokens(localStorage);
87
- clearUser(localStorage);
88
- // TODO open the iframe or new tab etc: the logout URL is not currently
89
- // supported by on the oauth, so just clear state until then
90
- const url = await generateOauthLogoutUrl(this.config);
91
- return url;
92
- }
93
- cleanup() {
94
- if (this.postMessageHandler) {
95
- window.removeEventListener("message", this.postMessageHandler);
96
- }
97
- }
98
- }
99
- /** A general-purpose authentication initiator, that just generates urls, but lets
100
- * the caller decide how to use them. This is useful for server-side applications
101
- * that may serve this URL to their front-ends or just call them directly
102
- */
103
- export class GenericAuthenticationInitiator {
104
- config;
105
- constructor(config) {
106
- this.config = config;
107
- console.log("GenericAuthenticationInitiator constructor", {
108
- config,
109
- });
110
- }
111
- // Use the config (Client ID, scopes OAuth Server, Endpoints, PKCEConsumer) to generate a new login url
112
- // and simply return the url
113
- async signIn() {
114
- return generateOauthLoginUrl(this.config);
115
- }
116
- async signOut() {
117
- return generateOauthLogoutUrl(this.config);
118
- }
119
- }
120
- /**
121
- * An authentication resolver that can run on the browser (i.e. a public client)
122
- * It uses PKCE for security. PKCE and Session data are stored in local storage
123
- */
124
- export class BrowserAuthenticationService extends BrowserAuthenticationInitiator {
125
- pkceProducer;
126
- oauth2client;
127
- endpoints;
128
- // TODO WIP - perhaps we want to keep resolver and initiator separate here
129
- constructor(config,
130
- // Since we are running fully on the client, we produce as well as consume the PKCE challenge
131
- pkceProducer = new BrowserPublicClientPKCEProducer()) {
132
- console.log("BrowserAuthenticationService constructor", {
133
- config,
134
- });
135
- super({
136
- ...config,
137
- state: generateState(config.displayMode),
138
- // Store and retrieve the PKCE challenge in local storage
139
- pkceConsumer: pkceProducer,
140
- });
141
- this.pkceProducer = pkceProducer;
142
- }
143
- // TODO too much code duplication here between the browser and the server variant.
144
- // Suggestion for refactor: Standardise the config for AuthenticationResolvers and create a one-shot
145
- // function for generating an oauth2client from it
146
- async init() {
147
- // resolve oauth config
148
- this.endpoints = await getEndpointsWithOverrides(this.config.oauthServer, this.config.endpointOverrides);
149
- this.oauth2client = new OAuth2Client(this.config.clientId, this.endpoints.auth, this.endpoints.token, {
150
- redirectURI: this.config.redirectUrl,
151
- });
152
- return this;
153
- }
154
- // Two responsibilities:
155
- // 1. resolve the auth code to get the tokens (should use library code)
156
- // 2. store the tokens in local storage
157
- async tokenExchange(code, state) {
158
- if (!this.oauth2client)
159
- await this.init();
160
- const codeVerifier = await this.pkceProducer.getCodeVerifier();
161
- if (!codeVerifier)
162
- throw new Error("Code verifier not found in storage");
163
- // exchange auth code for tokens
164
- const tokens = await exchangeTokens(code, state, this.pkceProducer, this.oauth2client, // clean up types here to avoid the ! operator
165
- this.config.oauthServer, this.endpoints);
166
- storeTokens(new LocalStorageAdapter(), tokens);
167
- // cleanup the browser window if needed
168
- const parsedDisplayMode = displayModeFromState(state, this.config.displayMode);
169
- if (parsedDisplayMode === "new_tab") {
170
- // Close the popup window
171
- window.close();
172
- }
173
- // these are the default oAuth params that get added to the URL in redirect which we want to remove if present
174
- removeParamsWithoutReload(DEFAULT_OAUTH_GET_PARAMS);
175
- return tokens;
176
- }
177
- // Get the session data from local storage
178
- async getSessionData() {
179
- const storageData = retrieveTokens(new LocalStorageAdapter());
180
- if (!storageData)
181
- return null;
182
- return {
183
- authenticated: !!storageData.id_token,
184
- idToken: storageData.id_token,
185
- accessToken: storageData.access_token,
186
- refreshToken: storageData.refresh_token,
187
- };
188
- }
189
- async validateExistingSession() {
190
- try {
191
- const sessionData = await this.getSessionData();
192
- if (!sessionData?.idToken || !sessionData.accessToken) {
193
- const unAuthenticatedSession = { ...sessionData, authenticated: false };
194
- clearTokens(new LocalStorageAdapter());
195
- return unAuthenticatedSession;
196
- }
197
- if (!this.endpoints || !this.oauth2client)
198
- await this.init();
199
- // this function will throw if any of the tokens are invalid
200
- await validateOauth2Tokens({
201
- access_token: sessionData.accessToken,
202
- id_token: sessionData.idToken,
203
- refresh_token: sessionData.refreshToken,
204
- }, this.endpoints, this.oauth2client, this.config.oauthServer);
205
- return sessionData;
206
- }
207
- catch (error) {
208
- console.warn("Failed to validate existing tokens", error);
209
- const unAuthenticatedSession = {
210
- authenticated: false,
211
- };
212
- clearTokens(new LocalStorageAdapter());
213
- return unAuthenticatedSession;
214
- }
215
- }
216
- static async build(config) {
217
- const resolver = new BrowserAuthenticationService(config);
218
- await resolver.init();
219
- return resolver;
220
- }
221
- }
222
- //# sourceMappingURL=AuthenticationService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationService.js","sourceRoot":"","sources":["../../../../src/services/AuthenticationService.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAS9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EACL,WAAW,EACX,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,WAAW,EACX,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAM3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,8BAA8B;IACjC,kBAAkB,GAA2C,IAAI,CAAC;IAEhE,MAAM,CAcd;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AC,CAAC;YACvC,OAAO,sBAAsB,CAAC;QAChC,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,KAAK,CAChB,MAAmC;QAEnC,MAAM,QAAQ,GAAG,IAAI,4BAA4B,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEtB,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["// Proposals for revised versions of the SessionService AKA AuthSessionService\n\nimport type {\n DisplayMode,\n Endpoints,\n LoginPostMessage,\n OIDCTokenResponseBody,\n SessionData,\n} from \"@/types.js\";\nimport { BrowserPublicClientPKCEProducer } from \"@/services/PKCE.js\";\nimport {\n clearTokens,\n clearUser,\n exchangeTokens,\n generateOauthLoginUrl,\n generateOauthLogoutUrl,\n getEndpointsWithOverrides,\n retrieveTokens,\n storeTokens,\n validateOauth2Tokens,\n} from \"@/shared/lib/util.js\";\nimport { displayModeFromState, generateState } from \"@/lib/oauth.js\";\nimport { OAuth2Client } from \"oslo/oauth2\";\nimport { LocalStorageAdapter } from \"@/browser/storage.js\";\nimport type {\n AuthenticationInitiator,\n AuthenticationResolver,\n PKCEConsumer,\n} from \"@/services/types.js\";\nimport { PopupError } from \"@/services/types.js\";\nimport { removeParamsWithoutReload } from \"@/lib/windowUtil.js\";\nimport { DEFAULT_OAUTH_GET_PARAMS } from \"@/constants.js\";\nimport { validateLoginAppPostMessage } from \"@/lib/postMessage.js\";\n\n/**\n * An authentication initiator that works on a browser. Since this is just triggering\n * login and logout, session data is not stored here.\n * An associated AuthenticationResolver would be needed to get the session data.\n * Storage is needed for the code verifier, this is the domain of the PKCEConsumer\n * The storage used by the PKCEConsumer should be available to the AuthenticationResolver.\n *\n * Example usage:\n *\n * 1) Client-only SPA -eg a react app with no server:\n * new BrowserAuthenticationInitiator({\n * pkceConsumer: new BrowserPublicClientPKCEProducer(), // generate and retrieve the challenge client-side\n * ... other config\n * })\n *\n * 2) Client-side of a client/server app - eg a react app with a backend:\n * new BrowserAuthenticationInitiator({\n * pkceConsumer: new ConfidentialClientPKCEConsumer(\"https://myserver.com/pkce\"), // get the challenge from the server\n * ... other config\n * })\n */\nexport class BrowserAuthenticationInitiator implements AuthenticationInitiator {\n private postMessageHandler: null | ((event: MessageEvent) => void) = null;\n\n protected config: {\n clientId: string;\n redirectUrl: string;\n state: string;\n scopes: string[];\n // determines whether to trigger the login/logout in an iframe, a new browser window, or redirect the current one.\n displayMode: DisplayMode;\n oauthServer: string;\n // the endpoints to use for the login (if not obtained from the auth server\n endpointOverrides?: Partial<Endpoints>;\n // used to get the PKCE challenge\n pkceConsumer: PKCEConsumer;\n // the nonce to use for the login\n nonce?: string;\n };\n\n constructor(config: typeof this.config) {\n this.config = config;\n console.log(\"BrowserAuthenticationInitiator constructor\", this.config);\n }\n\n async handleLoginAppPopupFailed(redirectUrl: string) {\n console.warn(\n \"Login app popup failed open a popup, using redirect mode instead...\",\n redirectUrl,\n );\n window.location.href = redirectUrl;\n }\n\n // Use the config (Client ID, scopes OAuth Server, Endpoints, PKCEConsumer) to generate a new login url\n // and then use the display mode to decide how to send the user there\n async signIn(iframeRef: HTMLIFrameElement | null): Promise<URL> {\n const url = await generateOauthLoginUrl(this.config);\n\n this.postMessageHandler = (event: MessageEvent) => {\n const thisURL = new URL(window.location.href);\n if (\n event.origin.endsWith(\"civic.com\") ||\n thisURL.hostname === \"localhost\"\n ) {\n if (!validateLoginAppPostMessage(event.data, this.config.clientId)) {\n console.log(\"Received invalid message from login app\", event.data);\n return;\n }\n const loginMessage = event.data as LoginPostMessage;\n console.log(\"Received message from login app\", event.data);\n this.handleLoginAppPopupFailed(loginMessage.data.url);\n }\n };\n window.addEventListener(\"message\", this.postMessageHandler);\n if (this.config.displayMode === \"iframe\") {\n if (!iframeRef)\n throw new Error(\"iframeRef is required for displayMode 'iframe'\");\n iframeRef.setAttribute(\"src\", url.toString());\n }\n if (this.config.displayMode === \"redirect\") {\n window.location.href = url.toString();\n }\n if (this.config.displayMode === \"new_tab\") {\n try {\n const popupWindow = window.open(url.toString(), \"_blank\");\n console.log(\"signIn\", popupWindow);\n if (!popupWindow) {\n throw new PopupError(\"Failed to open popup window\");\n }\n } catch (error) {\n console.error(\"popupWindow\", error);\n throw new PopupError(\n \"window.open has thrown: Failed to open popup window\",\n );\n }\n }\n return url;\n }\n\n async signOut(): Promise<URL> {\n const localStorage = new LocalStorageAdapter();\n clearTokens(localStorage);\n clearUser(localStorage);\n // TODO open the iframe or new tab etc: the logout URL is not currently\n // supported by on the oauth, so just clear state until then\n const url = await generateOauthLogoutUrl(this.config);\n return url;\n }\n\n cleanup() {\n if (this.postMessageHandler) {\n window.removeEventListener(\"message\", this.postMessageHandler);\n }\n }\n}\n\n/** A general-purpose authentication initiator, that just generates urls, but lets\n * the caller decide how to use them. This is useful for server-side applications\n * that may serve this URL to their front-ends or just call them directly\n */\nexport class GenericAuthenticationInitiator implements AuthenticationInitiator {\n protected config: {\n clientId: string;\n redirectUrl: string;\n state: string;\n scopes: string[];\n oauthServer: string;\n nonce?: string;\n // the endpoints to use for the login (if not obtained from the auth server)\n endpointOverrides?: Partial<Endpoints>;\n // used to get the PKCE challenge\n pkceConsumer: PKCEConsumer;\n };\n\n constructor(config: typeof this.config) {\n this.config = config;\n console.log(\"GenericAuthenticationInitiator constructor\", {\n config,\n });\n }\n\n // Use the config (Client ID, scopes OAuth Server, Endpoints, PKCEConsumer) to generate a new login url\n // and simply return the url\n async signIn(): Promise<URL> {\n return generateOauthLoginUrl(this.config);\n }\n\n async signOut(): Promise<URL> {\n return generateOauthLogoutUrl(this.config);\n }\n}\n\ntype BrowserAuthenticationConfig = {\n clientId: string;\n redirectUrl: string;\n scopes: string[];\n oauthServer: string;\n endpointOverrides?: Partial<Endpoints>;\n displayMode: DisplayMode;\n};\n\n/**\n * An authentication resolver that can run on the browser (i.e. a public client)\n * It uses PKCE for security. PKCE and Session data are stored in local storage\n */\nexport class BrowserAuthenticationService extends BrowserAuthenticationInitiator {\n private oauth2client: OAuth2Client | undefined;\n private endpoints: Endpoints | undefined;\n\n // TODO WIP - perhaps we want to keep resolver and initiator separate here\n constructor(\n config: BrowserAuthenticationConfig,\n // Since we are running fully on the client, we produce as well as consume the PKCE challenge\n protected pkceProducer = new BrowserPublicClientPKCEProducer(),\n ) {\n console.log(\"BrowserAuthenticationService constructor\", {\n config,\n });\n super({\n ...config,\n state: generateState(config.displayMode),\n // Store and retrieve the PKCE challenge in local storage\n pkceConsumer: pkceProducer,\n });\n }\n\n // TODO too much code duplication here between the browser and the server variant.\n // Suggestion for refactor: Standardise the config for AuthenticationResolvers and create a one-shot\n // function for generating an oauth2client from it\n async init(): Promise<this> {\n // resolve oauth config\n this.endpoints = await getEndpointsWithOverrides(\n this.config.oauthServer,\n this.config.endpointOverrides,\n );\n this.oauth2client = new OAuth2Client(\n this.config.clientId,\n this.endpoints.auth,\n this.endpoints.token,\n {\n redirectURI: this.config.redirectUrl,\n },\n );\n\n return this;\n }\n\n // Two responsibilities:\n // 1. resolve the auth code to get the tokens (should use library code)\n // 2. store the tokens in local storage\n async tokenExchange(\n code: string,\n state: string,\n ): Promise<OIDCTokenResponseBody> {\n if (!this.oauth2client) await this.init();\n const codeVerifier = await this.pkceProducer.getCodeVerifier();\n if (!codeVerifier) throw new Error(\"Code verifier not found in storage\");\n\n // exchange auth code for tokens\n const tokens = await exchangeTokens(\n code,\n state,\n this.pkceProducer,\n this.oauth2client!, // clean up types here to avoid the ! operator\n this.config.oauthServer,\n this.endpoints!, // clean up types here to avoid the ! operator\n );\n\n storeTokens(new LocalStorageAdapter(), tokens);\n\n // cleanup the browser window if needed\n const parsedDisplayMode = displayModeFromState(\n state,\n this.config.displayMode,\n );\n\n if (parsedDisplayMode === \"new_tab\") {\n // Close the popup window\n window.close();\n }\n // these are the default oAuth params that get added to the URL in redirect which we want to remove if present\n removeParamsWithoutReload(DEFAULT_OAUTH_GET_PARAMS);\n return tokens;\n }\n\n // Get the session data from local storage\n async getSessionData(): Promise<SessionData | null> {\n const storageData = retrieveTokens(new LocalStorageAdapter());\n\n if (!storageData) return null;\n\n return {\n authenticated: !!storageData.id_token,\n idToken: storageData.id_token,\n accessToken: storageData.access_token,\n refreshToken: storageData.refresh_token,\n };\n }\n\n async validateExistingSession(): Promise<SessionData> {\n try {\n const sessionData = await this.getSessionData();\n if (!sessionData?.idToken || !sessionData.accessToken) {\n const unAuthenticatedSession = { ...sessionData, authenticated: false };\n clearTokens(new LocalStorageAdapter());\n return unAuthenticatedSession;\n }\n if (!this.endpoints || !this.oauth2client) await this.init();\n\n // this function will throw if any of the tokens are invalid\n await validateOauth2Tokens(\n {\n access_token: sessionData.accessToken,\n id_token: sessionData.idToken,\n refresh_token: sessionData.refreshToken,\n },\n this.endpoints!,\n this.oauth2client!,\n this.config.oauthServer,\n );\n return sessionData;\n } catch (error) {\n console.warn(\"Failed to validate existing tokens\", error);\n const unAuthenticatedSession = {\n authenticated: false,\n };\n clearTokens(new LocalStorageAdapter());\n return unAuthenticatedSession;\n }\n }\n\n static async build(\n config: BrowserAuthenticationConfig,\n ): Promise<AuthenticationResolver> {\n const resolver = new BrowserAuthenticationService(config);\n await resolver.init();\n\n return resolver;\n }\n}\n"]}
@@ -1,20 +0,0 @@
1
- import type { PKCEConsumer, PKCEProducer } from "@/services/types.js";
2
- import type { AuthStorage } from "@/types.js";
3
- /** A PKCE consumer that retrieves the challenge from a server endpoint */
4
- export declare class ConfidentialClientPKCEConsumer implements PKCEConsumer {
5
- private pkceChallengeEndpoint;
6
- constructor(pkceChallengeEndpoint: string);
7
- getCodeChallenge(): Promise<string>;
8
- }
9
- /** A PKCE Producer that can generate and store a code verifier, but is agnostic as to the storage location */
10
- export declare class GenericPublicClientPKCEProducer implements PKCEProducer {
11
- private storage;
12
- constructor(storage: AuthStorage);
13
- getCodeChallenge(): Promise<string>;
14
- getCodeVerifier(): Promise<string | null>;
15
- }
16
- /** A PKCE Producer that is expected to run on a browser, and does not need a backend */
17
- export declare class BrowserPublicClientPKCEProducer extends GenericPublicClientPKCEProducer {
18
- constructor();
19
- }
20
- //# sourceMappingURL=PKCE.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PKCE.d.ts","sourceRoot":"","sources":["../../../../src/services/PKCE.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,0EAA0E;AAC1E,qBAAa,8BAA+B,YAAW,YAAY;IACrD,OAAO,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,MAAM;IAC3C,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;CAO1C;AAED,8GAA8G;AAC9G,qBAAa,+BAAgC,YAAW,YAAY;IACtD,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAIlC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IASnC,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAGhD;AAED,wFAAwF;AACxF,qBAAa,+BAAgC,SAAQ,+BAA+B;;CAInF"}
@@ -1,44 +0,0 @@
1
- import { deriveCodeChallenge } from "@/shared/lib/util.js";
2
- import { generateCodeVerifier } from "oslo/oauth2";
3
- import { LocalStorageAdapter } from "@/browser/storage.js";
4
- import { CodeVerifier } from "@/shared/lib/types.js";
5
- /** A PKCE consumer that retrieves the challenge from a server endpoint */
6
- export class ConfidentialClientPKCEConsumer {
7
- pkceChallengeEndpoint;
8
- constructor(pkceChallengeEndpoint) {
9
- this.pkceChallengeEndpoint = pkceChallengeEndpoint;
10
- }
11
- async getCodeChallenge() {
12
- const response = await fetch(`${this.pkceChallengeEndpoint}?appUrl=${window.location.origin}`);
13
- const data = (await response.json());
14
- return data.challenge;
15
- }
16
- }
17
- /** A PKCE Producer that can generate and store a code verifier, but is agnostic as to the storage location */
18
- export class GenericPublicClientPKCEProducer {
19
- storage;
20
- constructor(storage) {
21
- this.storage = storage;
22
- }
23
- // if there is already a verifier, return it,
24
- // If not, create a new one and store it
25
- async getCodeChallenge() {
26
- // let verifier = await this.getCodeVerifier();
27
- // if (!verifier) {
28
- const verifier = generateCodeVerifier();
29
- this.storage.set(CodeVerifier.COOKIE_NAME, verifier);
30
- // }
31
- return deriveCodeChallenge(verifier);
32
- }
33
- // if there is already a verifier, return it,
34
- async getCodeVerifier() {
35
- return this.storage.get(CodeVerifier.COOKIE_NAME);
36
- }
37
- }
38
- /** A PKCE Producer that is expected to run on a browser, and does not need a backend */
39
- export class BrowserPublicClientPKCEProducer extends GenericPublicClientPKCEProducer {
40
- constructor() {
41
- super(new LocalStorageAdapter());
42
- }
43
- }
44
- //# sourceMappingURL=PKCE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PKCE.js","sourceRoot":"","sources":["../../../../src/services/PKCE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,0EAA0E;AAC1E,MAAM,OAAO,8BAA8B;IACrB;IAApB,YAAoB,qBAA6B;QAA7B,0BAAqB,GAArB,qBAAqB,CAAQ;IAAG,CAAC;IACrD,KAAK,CAAC,gBAAgB;QACpB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,GAAG,IAAI,CAAC,qBAAqB,WAAW,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CACjE,CAAC;QACF,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAA0B,CAAC;QAC9D,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AAED,8GAA8G;AAC9G,MAAM,OAAO,+BAA+B;IACtB;IAApB,YAAoB,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IAAG,CAAC;IAE5C,6CAA6C;IAC7C,wCAAwC;IACxC,KAAK,CAAC,gBAAgB;QACpB,+CAA+C;QAC/C,mBAAmB;QACnB,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;QACxC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACrD,IAAI;QACJ,OAAO,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;IACD,6CAA6C;IAC7C,KAAK,CAAC,eAAe;QACnB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;CACF;AAED,wFAAwF;AACxF,MAAM,OAAO,+BAAgC,SAAQ,+BAA+B;IAClF;QACE,KAAK,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;IACnC,CAAC;CACF","sourcesContent":["import { deriveCodeChallenge } from \"@/shared/lib/util.js\";\nimport { generateCodeVerifier } from \"oslo/oauth2\";\nimport { LocalStorageAdapter } from \"@/browser/storage.js\";\nimport type { PKCEConsumer, PKCEProducer } from \"@/services/types.js\";\nimport type { AuthStorage } from \"@/types.js\";\nimport { CodeVerifier } from \"@/shared/lib/types.js\";\n\n/** A PKCE consumer that retrieves the challenge from a server endpoint */\nexport class ConfidentialClientPKCEConsumer implements PKCEConsumer {\n constructor(private pkceChallengeEndpoint: string) {}\n async getCodeChallenge(): Promise<string> {\n const response = await fetch(\n `${this.pkceChallengeEndpoint}?appUrl=${window.location.origin}`,\n );\n const data = (await response.json()) as { challenge: string };\n return data.challenge;\n }\n}\n\n/** A PKCE Producer that can generate and store a code verifier, but is agnostic as to the storage location */\nexport class GenericPublicClientPKCEProducer implements PKCEProducer {\n constructor(private storage: AuthStorage) {}\n\n // if there is already a verifier, return it,\n // If not, create a new one and store it\n async getCodeChallenge(): Promise<string> {\n // let verifier = await this.getCodeVerifier();\n // if (!verifier) {\n const verifier = generateCodeVerifier();\n this.storage.set(CodeVerifier.COOKIE_NAME, verifier);\n // }\n return deriveCodeChallenge(verifier);\n }\n // if there is already a verifier, return it,\n async getCodeVerifier(): Promise<string | null> {\n return this.storage.get(CodeVerifier.COOKIE_NAME);\n }\n}\n\n/** A PKCE Producer that is expected to run on a browser, and does not need a backend */\nexport class BrowserPublicClientPKCEProducer extends GenericPublicClientPKCEProducer {\n constructor() {\n super(new LocalStorageAdapter());\n }\n}\n"]}
@@ -1,23 +0,0 @@
1
- import type { OIDCTokenResponseBody, SessionData } from "@/types.js";
2
- export interface PKCEConsumer {
3
- getCodeChallenge(): Promise<string>;
4
- }
5
- export interface PKCEProducer extends PKCEConsumer {
6
- getCodeVerifier(): Promise<string | null>;
7
- }
8
- export interface AuthenticationInitiator {
9
- signIn(iframeRef: HTMLIFrameElement | null): Promise<URL>;
10
- signOut(): Promise<URL>;
11
- }
12
- export interface AuthenticationResolver {
13
- tokenExchange(code: string, state: string): Promise<OIDCTokenResponseBody>;
14
- getSessionData(): Promise<SessionData | null>;
15
- validateExistingSession(): Promise<SessionData>;
16
- }
17
- export interface AuthenticationRefresher {
18
- refreshTokens: () => Promise<OIDCTokenResponseBody>;
19
- }
20
- export declare class PopupError extends Error {
21
- constructor(message: string);
22
- }
23
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AASrE,MAAM,WAAW,YAAY;IAE3B,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACrC;AAGD,MAAM,WAAW,YAAa,SAAQ,YAAY;IAEhD,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3C;AAGD,MAAM,WAAW,uBAAuB;IAEtC,MAAM,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAG1D,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACzB;AAGD,MAAM,WAAW,sBAAsB;IAKrC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAG3E,cAAc,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAG9C,uBAAuB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrD;AAED,qBAAa,UAAW,SAAQ,KAAK;gBACvB,OAAO,EAAE,MAAM;CAI5B"}
@@ -1,7 +0,0 @@
1
- export class PopupError extends Error {
2
- constructor(message) {
3
- super(message);
4
- Object.setPrototypeOf(this, PopupError.prototype);
5
- }
6
- }
7
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/services/types.ts"],"names":[],"mappings":"AAgDA,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;CACF","sourcesContent":["import type { OIDCTokenResponseBody, SessionData } from \"@/types.js\";\n\n// A PKCEConsumer can get a code challenge to use in the login process\n// A PKCEProducer can also generate and store verifiers. The producer must also be a consumer in order to get the challenge from an existing flow\n// Examples:\n// - Client-only SPA: The SPA generates the code challenge and verifier, stores the verifier in state and returns the code challenge\n// Note - The SPA should use PKCEProducer instead to do both\n// - Client-side of a client/server app: The client calls the backend to get the challenge.\n// - Server-side: The server should generate a new stored verifier and derive the challenge from it.\nexport interface PKCEConsumer {\n // Retrieve a new PKCE challenge\n getCodeChallenge(): Promise<string>;\n}\n\n// All producers are consumers, because the producer can get its own challenge\nexport interface PKCEProducer extends PKCEConsumer {\n // Retrieve the PKCE challenge from the session if one exists\n getCodeVerifier(): Promise<string | null>;\n}\n\n// A service that can initiate requests to login or log out\nexport interface AuthenticationInitiator {\n // trigger a new login\n signIn(iframeRef: HTMLIFrameElement | null): Promise<URL>;\n\n // trigger a new logout\n signOut(): Promise<URL>;\n}\n\n// A service that can resolve an authentication request according to the OAuth Auth Code grant types\nexport interface AuthenticationResolver {\n // Given an auth code, get the tokens from the auth server and store them. works in PKCE and non-PKCE environments\n // Note, if we choose later to implement other grants, this method would move into a subinterface specifically\n // for the authorization code grant type.\n // The return type is just for convenience and can be ignored, as the same data would be provided by getSessionData\n tokenExchange(code: string, state: string): Promise<OIDCTokenResponseBody>;\n\n // If the tokens have already been retrieved, return them\n getSessionData(): Promise<SessionData | null>;\n\n // If an existing session is found, validate it and return the session data\n validateExistingSession(): Promise<SessionData>;\n}\n\nexport interface AuthenticationRefresher {\n refreshTokens: () => Promise<OIDCTokenResponseBody>;\n}\n\nexport class PopupError extends Error {\n constructor(message: string) {\n super(message);\n Object.setPrototypeOf(this, PopupError.prototype);\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- type CivicAuthIframeProps = {
3
- onLoad?: () => void;
4
- };
5
- declare const CivicAuthIframe: React.ForwardRefExoticComponent<CivicAuthIframeProps & React.RefAttributes<HTMLIFrameElement>>;
6
- export type { CivicAuthIframeProps };
7
- export { CivicAuthIframe };
8
- //# sourceMappingURL=CivicAuthIframe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CivicAuthIframe.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/CivicAuthIframe.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,eAAe,gGAWpB,CAAC;AAIF,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { IFRAME_ID } from "@/constants.js";
3
- import React, { forwardRef } from "react";
4
- const CivicAuthIframe = forwardRef(({ onLoad }, ref) => {
5
- return (React.createElement("iframe", { id: IFRAME_ID, ref: ref, className: "cac-h-[26rem] cac-w-full cac-border-none", onLoad: onLoad }));
6
- });
7
- CivicAuthIframe.displayName = "CivicAuthIframe";
8
- export { CivicAuthIframe };
9
- //# sourceMappingURL=CivicAuthIframe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CivicAuthIframe.js","sourceRoot":"","sources":["../../../../../src/shared/components/CivicAuthIframe.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAM1C,MAAM,eAAe,GAAG,UAAU,CAChC,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE;IAClB,OAAO,CACL,gCACE,EAAE,EAAE,SAAS,EACb,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,0CAA0C,EACpD,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAIhD,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["\"use client\";\nimport { IFRAME_ID } from \"@/constants.js\";\nimport React, { forwardRef } from \"react\";\n\ntype CivicAuthIframeProps = {\n onLoad?: () => void;\n};\n\nconst CivicAuthIframe = forwardRef<HTMLIFrameElement, CivicAuthIframeProps>(\n ({ onLoad }, ref) => {\n return (\n <iframe\n id={IFRAME_ID}\n ref={ref}\n className=\"cac-h-[26rem] cac-w-full cac-border-none\"\n onLoad={onLoad}\n />\n );\n },\n);\n\nCivicAuthIframe.displayName = \"CivicAuthIframe\";\n\nexport type { CivicAuthIframeProps };\n\nexport { CivicAuthIframe };\n"]}
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- type CivicAuthIframeContainerProps = {
3
- onClose?: () => void;
4
- closeOnRedirect?: boolean;
5
- };
6
- declare const CivicAuthIframeContainer: ({ onClose, closeOnRedirect, }: CivicAuthIframeContainerProps) => React.JSX.Element;
7
- export type { CivicAuthIframeContainerProps };
8
- export { CivicAuthIframeContainer };
9
- //# sourceMappingURL=CivicAuthIframeContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CivicAuthIframeContainer.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/CivicAuthIframeContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,KAAK,6BAA6B,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAuCF,QAAA,MAAM,wBAAwB,kCAG3B,6BAA6B,sBA8F/B,CAAC;AAEF,YAAY,EAAE,6BAA6B,EAAE,CAAC;AAE9C,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,92 +0,0 @@
1
- "use client";
2
- import React, { useCallback, useEffect, useRef, useState } from "react";
3
- import { LoadingIcon } from "@/shared/components/LoadingIcon.js";
4
- import { CloseIcon } from "@/shared/components/CloseIcon.js";
5
- import { CivicAuthIframe } from "@/shared/components/CivicAuthIframe.js";
6
- import { useAuth, useConfig, useIframe } from "@/shared/hooks/index.js";
7
- import { TOKEN_EXCHANGE_TRIGGER_TEXT } from "@/constants.js";
8
- function NoChrome({ children, }) {
9
- return React.createElement("div", { className: "cac-relative" }, children);
10
- }
11
- function IframeChrome({ children, onClose, }) {
12
- return (React.createElement("div", { className: "cac-absolute cac-left-0 cac-top-0 cac-z-50 cac-flex cac-h-screen cac-w-screen cac-min-w-72 cac-items-center cac-justify-center cac-bg-neutral-950 cac-bg-opacity-50", onClick: onClose },
13
- React.createElement("div", { className: "cac-relative cac-overflow-hidden cac-rounded-3xl cac-bg-white cac-p-2 cac-shadow-lg sm:cac-p-6", onClick: (e) => e.stopPropagation() },
14
- React.createElement("button", { className: "cac-absolute cac-right-4 cac-top-4 cac-flex cac-cursor-pointer cac-items-center cac-justify-center cac-border-none cac-bg-transparent cac-p-1 cac-text-neutral-400", onClick: onClose },
15
- React.createElement(CloseIcon, null)),
16
- children)));
17
- }
18
- const CivicAuthIframeContainer = ({ onClose, closeOnRedirect = true, }) => {
19
- const [isLoading, setIsLoading] = useState(true);
20
- const { isLoading: isAuthLoading } = useAuth();
21
- const config = useConfig();
22
- const { setAuthResponseUrl, iframeRef } = useIframe();
23
- const processIframeUrl = useCallback(() => {
24
- if (iframeRef && iframeRef.current && iframeRef.current.contentWindow) {
25
- try {
26
- const iframeUrl = iframeRef.current.contentWindow.location.href;
27
- // we know that oauth has finished when the iframe redirects to our redirectUrl
28
- if (iframeUrl.startsWith(config.redirectUrl)) {
29
- // we still want to show the spinner during redirect
30
- setIsLoading(true);
31
- const iframeBody = iframeRef.current.contentWindow.document.body.innerHTML;
32
- // If we're doing a server token exchange, we need to call the server a second time
33
- // using a fetch so that we're on the same domain and cookies can be sent and read
34
- // The server will use the presence of the code_verifier cookie to determine whether to do a token exchange or not.
35
- // On the initial (3rd party) redirect from the auth server, the cookie won't be sent, so the server-side callback route will just render a blank page,
36
- // and we'll do the exchange request from here, which will include the cookies.
37
- if (iframeBody.includes(TOKEN_EXCHANGE_TRIGGER_TEXT)) {
38
- console.log(`${TOKEN_EXCHANGE_TRIGGER_TEXT}, calling callback URL again...`);
39
- const params = new URL(iframeUrl).searchParams;
40
- const appUrl = globalThis.window?.location?.origin;
41
- fetch(`${config.redirectUrl}?${params.toString()}&appUrl=${appUrl}`);
42
- }
43
- else {
44
- // if we're doing token-exchange in the client, we can just set the authResponseUrl
45
- // to be handled by the auth provider
46
- setAuthResponseUrl(iframeUrl);
47
- }
48
- if (closeOnRedirect)
49
- onClose?.();
50
- return true; // Successfully processed the URL
51
- }
52
- }
53
- catch {
54
- // If we get here, the iframe hasn't redirected to our origin yet
55
- console.log("Waiting for redirect...");
56
- }
57
- }
58
- return false; // Haven't processed the URL yet
59
- }, [
60
- closeOnRedirect,
61
- config.redirectUrl,
62
- iframeRef,
63
- onClose,
64
- setAuthResponseUrl,
65
- ]);
66
- const intervalId = useRef();
67
- const handleEscape = useCallback((event) => {
68
- if (event.key === "Escape") {
69
- onClose?.();
70
- }
71
- }, [onClose]);
72
- // handle Escape
73
- useEffect(() => {
74
- window.addEventListener("keydown", handleEscape);
75
- return () => window.removeEventListener("keydown", handleEscape);
76
- });
77
- const handleIframeLoad = () => {
78
- setIsLoading(false);
79
- console.log("handleIframeLoad");
80
- if (processIframeUrl() && intervalId.current) {
81
- clearInterval(intervalId.current);
82
- }
83
- };
84
- const showLoadingIcon = isLoading || isAuthLoading || !iframeRef?.current?.getAttribute("src");
85
- const WrapperComponent = config.modalIframe ? IframeChrome : NoChrome;
86
- return (React.createElement(WrapperComponent, { onClose: onClose },
87
- showLoadingIcon && (React.createElement("div", { className: "cac-absolute cac-inset-0 cac-flex cac-items-center cac-justify-center cac-bg-white" },
88
- React.createElement(LoadingIcon, null))),
89
- React.createElement(CivicAuthIframe, { ref: iframeRef, onLoad: handleIframeLoad })));
90
- };
91
- export { CivicAuthIframeContainer };
92
- //# sourceMappingURL=CivicAuthIframeContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CivicAuthIframeContainer.js","sourceRoot":"","sources":["../../../../../src/shared/components/CivicAuthIframeContainer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,M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C;AAIF,OAAO,EAAE,wBAAwB,EAAE,CAAC","sourcesContent":["\"use client\";\n\nimport React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { LoadingIcon } from \"@/shared/components/LoadingIcon.js\";\nimport { CloseIcon } from \"@/shared/components/CloseIcon.js\";\nimport { CivicAuthIframe } from \"@/shared/components/CivicAuthIframe.js\";\nimport { useAuth, useConfig, useIframe } from \"@/shared/hooks/index.js\";\nimport { TOKEN_EXCHANGE_TRIGGER_TEXT } from \"@/constants.js\";\n\ntype CivicAuthIframeContainerProps = {\n onClose?: () => void;\n closeOnRedirect?: boolean;\n};\n\nfunction NoChrome({\n children,\n}: {\n children: React.ReactNode;\n onClose?: () => void;\n}) {\n return <div className=\"cac-relative\">{children}</div>;\n}\n\nfunction IframeChrome({\n children,\n onClose,\n}: {\n children: React.ReactNode;\n onClose?: () => void;\n}) {\n return (\n <div\n className=\"cac-absolute cac-left-0 cac-top-0 cac-z-50 cac-flex cac-h-screen cac-w-screen cac-min-w-72 cac-items-center cac-justify-center cac-bg-neutral-950 cac-bg-opacity-50\"\n onClick={onClose}\n >\n <div\n className=\"cac-relative cac-overflow-hidden cac-rounded-3xl cac-bg-white cac-p-2 cac-shadow-lg sm:cac-p-6\"\n onClick={(e) => e.stopPropagation()}\n >\n <button\n className=\"cac-absolute cac-right-4 cac-top-4 cac-flex cac-cursor-pointer cac-items-center cac-justify-center cac-border-none cac-bg-transparent cac-p-1 cac-text-neutral-400\"\n onClick={onClose}\n >\n <CloseIcon />\n </button>\n\n {children}\n </div>\n </div>\n );\n}\nconst CivicAuthIframeContainer = ({\n onClose,\n closeOnRedirect = true,\n}: CivicAuthIframeContainerProps) => {\n const [isLoading, setIsLoading] = useState(true);\n const { isLoading: isAuthLoading } = useAuth();\n const config = useConfig();\n const { setAuthResponseUrl, iframeRef } = useIframe();\n const processIframeUrl = useCallback(() => {\n if (iframeRef && iframeRef.current && iframeRef.current.contentWindow) {\n try {\n const iframeUrl = iframeRef.current.contentWindow.location.href;\n // we know that oauth has finished when the iframe redirects to our redirectUrl\n if (iframeUrl.startsWith(config.redirectUrl)) {\n // we still want to show the spinner during redirect\n setIsLoading(true);\n const iframeBody =\n iframeRef.current.contentWindow.document.body.innerHTML;\n\n // If we're doing a server token exchange, we need to call the server a second time\n // using a fetch so that we're on the same domain and cookies can be sent and read\n // The server will use the presence of the code_verifier cookie to determine whether to do a token exchange or not.\n // On the initial (3rd party) redirect from the auth server, the cookie won't be sent, so the server-side callback route will just render a blank page,\n // and we'll do the exchange request from here, which will include the cookies.\n if (iframeBody.includes(TOKEN_EXCHANGE_TRIGGER_TEXT)) {\n console.log(\n `${TOKEN_EXCHANGE_TRIGGER_TEXT}, calling callback URL again...`,\n );\n const params = new URL(iframeUrl).searchParams;\n const appUrl = globalThis.window?.location?.origin;\n fetch(\n `${config.redirectUrl}?${params.toString()}&appUrl=${appUrl}`,\n );\n } else {\n // if we're doing token-exchange in the client, we can just set the authResponseUrl\n // to be handled by the auth provider\n setAuthResponseUrl(iframeUrl);\n }\n\n if (closeOnRedirect) onClose?.();\n return true; // Successfully processed the URL\n }\n } catch {\n // If we get here, the iframe hasn't redirected to our origin yet\n console.log(\"Waiting for redirect...\");\n }\n }\n return false; // Haven't processed the URL yet\n }, [\n closeOnRedirect,\n config.redirectUrl,\n iframeRef,\n onClose,\n setAuthResponseUrl,\n ]);\n\n const intervalId = useRef<NodeJS.Timeout>();\n\n const handleEscape = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n onClose?.();\n }\n },\n [onClose],\n );\n\n // handle Escape\n useEffect(() => {\n window.addEventListener(\"keydown\", handleEscape);\n\n return () => window.removeEventListener(\"keydown\", handleEscape);\n });\n\n const handleIframeLoad = () => {\n setIsLoading(false);\n console.log(\"handleIframeLoad\");\n if (processIframeUrl() && intervalId.current) {\n clearInterval(intervalId.current);\n }\n };\n const showLoadingIcon =\n isLoading || isAuthLoading || !iframeRef?.current?.getAttribute(\"src\");\n\n const WrapperComponent = config.modalIframe ? IframeChrome : NoChrome;\n\n return (\n <WrapperComponent onClose={onClose}>\n {showLoadingIcon && (\n <div className=\"cac-absolute cac-inset-0 cac-flex cac-items-center cac-justify-center cac-bg-white\">\n <LoadingIcon />\n </div>\n )}\n\n <CivicAuthIframe ref={iframeRef} onLoad={handleIframeLoad} />\n </WrapperComponent>\n );\n};\n\nexport type { CivicAuthIframeContainerProps };\n\nexport { CivicAuthIframeContainer };\n"]}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const CloseIcon: () => React.JSX.Element;
3
- export { CloseIcon };
4
- //# sourceMappingURL=CloseIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloseIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/CloseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,SAAS,yBAgBd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- const CloseIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "lucide lucide-x" },
3
- React.createElement("path", { d: "M18 6 6 18" }),
4
- React.createElement("path", { d: "m6 6 12 12" })));
5
- export { CloseIcon };
6
- //# sourceMappingURL=CloseIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloseIcon.js","sourceRoot":"","sources":["../../../../../src/shared/components/CloseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,6BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,SAAS,EAAC,iBAAiB;IAE3B,8BAAM,CAAC,EAAC,YAAY,GAAG;IACvB,8BAAM,CAAC,EAAC,YAAY,GAAG,CACnB,CACP,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC","sourcesContent":["import React from \"react\";\n\nconst CloseIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-x\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n);\n\nexport { CloseIcon };\n"]}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const LoadingIcon: () => React.JSX.Element;
3
- export { LoadingIcon };
4
- //# sourceMappingURL=LoadingIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadingIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/LoadingIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,WAAW,yBAoBhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- const LoadingIcon = () => (React.createElement("div", { role: "status" },
3
- React.createElement("svg", { "aria-hidden": "true", className: "cac-inline cac-h-8 cac-w-8 cac-animate-spin cac-fill-neutral-600 cac-text-neutral-200 dark:cac-fill-neutral-300 dark:cac-text-neutral-600", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
- React.createElement("path", { d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }),
5
- React.createElement("path", { d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" })),
6
- React.createElement("span", { className: "cac-sr-only" }, "Loading...")));
7
- export { LoadingIcon };
8
- //# sourceMappingURL=LoadingIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadingIcon.js","sourceRoot":"","sources":["../../../../../src/shared/components/LoadingIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,6BAAK,IAAI,EAAC,QAAQ;IAChB,4CACc,MAAM,EAClB,SAAS,EAAC,2IAA2I,EACrJ,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;QAElC,8BACE,CAAC,EAAC,8WAA8W,EAChX,IAAI,EAAC,cAAc,GACnB;QACF,8BACE,CAAC,EAAC,+kBAA+kB,EACjlB,IAAI,EAAC,aAAa,GAClB,CACE;IACN,8BAAM,SAAS,EAAC,aAAa,iBAAkB,CAC3C,CACP,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import React from \"react\";\n\nconst LoadingIcon = () => (\n <div role=\"status\">\n <svg\n aria-hidden=\"true\"\n className=\"cac-inline cac-h-8 cac-w-8 cac-animate-spin cac-fill-neutral-600 cac-text-neutral-200 dark:cac-fill-neutral-300 dark:cac-text-neutral-600\"\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\"\n fill=\"currentFill\"\n />\n </svg>\n <span className=\"cac-sr-only\">Loading...</span>\n </div>\n);\n\nexport { LoadingIcon };\n"]}
@@ -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.d.ts.map