@civic/auth 0.0.1--.tsc.alpha.1 → 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (766) hide show
  1. package/README.md +0 -26
  2. package/dist/index-DFVNodC9.d.mts +66 -0
  3. package/dist/index-DFVNodC9.d.ts +66 -0
  4. package/dist/index.css +339 -0
  5. package/dist/index.css.map +1 -0
  6. package/dist/index.d.mts +2 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.js +20 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/index.mjs +2 -0
  11. package/dist/index.mjs.map +1 -0
  12. package/dist/nextjs.d.mts +239 -0
  13. package/dist/nextjs.d.ts +239 -0
  14. package/dist/nextjs.js +927 -0
  15. package/dist/nextjs.js.map +1 -0
  16. package/dist/nextjs.mjs +888 -0
  17. package/dist/nextjs.mjs.map +1 -0
  18. package/dist/react.d.mts +118 -0
  19. package/dist/react.d.ts +118 -0
  20. package/dist/react.js +1429 -0
  21. package/dist/react.js.map +1 -0
  22. package/dist/react.mjs +1391 -0
  23. package/dist/react.mjs.map +1 -0
  24. package/package.json +32 -57
  25. package/.eslintignore +0 -3
  26. package/.eslintrc.json +0 -10
  27. package/.prettierignore +0 -3
  28. package/.prettierrc +0 -4
  29. package/.turbo/turbo-build.log +0 -13
  30. package/.turbo/turbo-lint.log +0 -6
  31. package/.turbo/turbo-test.log +0 -2415
  32. package/civic-auth-0.0.1-beta.21.tgz +0 -0
  33. package/dist/cjs/src/browser/storage.d.ts +0 -6
  34. package/dist/cjs/src/browser/storage.d.ts.map +0 -1
  35. package/dist/cjs/src/browser/storage.js +0 -13
  36. package/dist/cjs/src/browser/storage.js.map +0 -1
  37. package/dist/cjs/src/config.d.ts +0 -3
  38. package/dist/cjs/src/config.d.ts.map +0 -1
  39. package/dist/cjs/src/config.js +0 -8
  40. package/dist/cjs/src/config.js.map +0 -1
  41. package/dist/cjs/src/constants.d.ts +0 -9
  42. package/dist/cjs/src/constants.d.ts.map +0 -1
  43. package/dist/cjs/src/constants.js +0 -26
  44. package/dist/cjs/src/constants.js.map +0 -1
  45. package/dist/cjs/src/index.d.ts +0 -5
  46. package/dist/cjs/src/index.d.ts.map +0 -1
  47. package/dist/cjs/src/index.js +0 -5
  48. package/dist/cjs/src/index.js.map +0 -1
  49. package/dist/cjs/src/lib/cookies.d.ts +0 -7
  50. package/dist/cjs/src/lib/cookies.d.ts.map +0 -1
  51. package/dist/cjs/src/lib/cookies.js +0 -26
  52. package/dist/cjs/src/lib/cookies.js.map +0 -1
  53. package/dist/cjs/src/lib/jwt.d.ts +0 -3
  54. package/dist/cjs/src/lib/jwt.d.ts.map +0 -1
  55. package/dist/cjs/src/lib/jwt.js +0 -13
  56. package/dist/cjs/src/lib/jwt.js.map +0 -1
  57. package/dist/cjs/src/lib/logger.d.ts +0 -26
  58. package/dist/cjs/src/lib/logger.d.ts.map +0 -1
  59. package/dist/cjs/src/lib/logger.js +0 -62
  60. package/dist/cjs/src/lib/logger.js.map +0 -1
  61. package/dist/cjs/src/lib/oauth.d.ts +0 -19
  62. package/dist/cjs/src/lib/oauth.d.ts.map +0 -1
  63. package/dist/cjs/src/lib/oauth.js +0 -67
  64. package/dist/cjs/src/lib/oauth.js.map +0 -1
  65. package/dist/cjs/src/lib/postMessage.d.ts +0 -4
  66. package/dist/cjs/src/lib/postMessage.d.ts.map +0 -1
  67. package/dist/cjs/src/lib/postMessage.js +0 -18
  68. package/dist/cjs/src/lib/postMessage.js.map +0 -1
  69. package/dist/cjs/src/lib/windowUtil.d.ts +0 -4
  70. package/dist/cjs/src/lib/windowUtil.d.ts.map +0 -1
  71. package/dist/cjs/src/lib/windowUtil.js +0 -34
  72. package/dist/cjs/src/lib/windowUtil.js.map +0 -1
  73. package/dist/cjs/src/nextjs/GetUser.d.ts +0 -6
  74. package/dist/cjs/src/nextjs/GetUser.d.ts.map +0 -1
  75. package/dist/cjs/src/nextjs/GetUser.js +0 -22
  76. package/dist/cjs/src/nextjs/GetUser.js.map +0 -1
  77. package/dist/cjs/src/nextjs/client/index.d.ts +0 -2
  78. package/dist/cjs/src/nextjs/client/index.d.ts.map +0 -1
  79. package/dist/cjs/src/nextjs/client/index.js +0 -6
  80. package/dist/cjs/src/nextjs/client/index.js.map +0 -1
  81. package/dist/cjs/src/nextjs/config.d.ts +0 -180
  82. package/dist/cjs/src/nextjs/config.d.ts.map +0 -1
  83. package/dist/cjs/src/nextjs/config.js +0 -163
  84. package/dist/cjs/src/nextjs/config.js.map +0 -1
  85. package/dist/cjs/src/nextjs/cookies.d.ts +0 -30
  86. package/dist/cjs/src/nextjs/cookies.d.ts.map +0 -1
  87. package/dist/cjs/src/nextjs/cookies.js +0 -116
  88. package/dist/cjs/src/nextjs/cookies.js.map +0 -1
  89. package/dist/cjs/src/nextjs/hooks/index.d.ts +0 -2
  90. package/dist/cjs/src/nextjs/hooks/index.d.ts.map +0 -1
  91. package/dist/cjs/src/nextjs/hooks/index.js +0 -6
  92. package/dist/cjs/src/nextjs/hooks/index.js.map +0 -1
  93. package/dist/cjs/src/nextjs/hooks/useTokenCookie.d.ts +0 -3
  94. package/dist/cjs/src/nextjs/hooks/useTokenCookie.d.ts.map +0 -1
  95. package/dist/cjs/src/nextjs/hooks/useTokenCookie.js +0 -41
  96. package/dist/cjs/src/nextjs/hooks/useTokenCookie.js.map +0 -1
  97. package/dist/cjs/src/nextjs/hooks/useUserCookie.d.ts +0 -3
  98. package/dist/cjs/src/nextjs/hooks/useUserCookie.d.ts.map +0 -1
  99. package/dist/cjs/src/nextjs/hooks/useUserCookie.js +0 -40
  100. package/dist/cjs/src/nextjs/hooks/useUserCookie.js.map +0 -1
  101. package/dist/cjs/src/nextjs/index.d.ts +0 -7
  102. package/dist/cjs/src/nextjs/index.d.ts.map +0 -1
  103. package/dist/cjs/src/nextjs/index.js +0 -20
  104. package/dist/cjs/src/nextjs/index.js.map +0 -1
  105. package/dist/cjs/src/nextjs/middleware/index.d.ts +0 -2
  106. package/dist/cjs/src/nextjs/middleware/index.d.ts.map +0 -1
  107. package/dist/cjs/src/nextjs/middleware/index.js +0 -8
  108. package/dist/cjs/src/nextjs/middleware/index.js.map +0 -1
  109. package/dist/cjs/src/nextjs/middleware.d.ts +0 -59
  110. package/dist/cjs/src/nextjs/middleware.d.ts.map +0 -1
  111. package/dist/cjs/src/nextjs/middleware.js +0 -116
  112. package/dist/cjs/src/nextjs/middleware.js.map +0 -1
  113. package/dist/cjs/src/nextjs/providers/NextAuthProvider.d.ts +0 -9
  114. package/dist/cjs/src/nextjs/providers/NextAuthProvider.d.ts.map +0 -1
  115. package/dist/cjs/src/nextjs/providers/NextAuthProvider.js +0 -77
  116. package/dist/cjs/src/nextjs/providers/NextAuthProvider.js.map +0 -1
  117. package/dist/cjs/src/nextjs/routeHandler.d.ts +0 -18
  118. package/dist/cjs/src/nextjs/routeHandler.d.ts.map +0 -1
  119. package/dist/cjs/src/nextjs/routeHandler.js +0 -208
  120. package/dist/cjs/src/nextjs/routeHandler.js.map +0 -1
  121. package/dist/cjs/src/nextjs/utils.d.ts +0 -3
  122. package/dist/cjs/src/nextjs/utils.d.ts.map +0 -1
  123. package/dist/cjs/src/nextjs/utils.js +0 -10
  124. package/dist/cjs/src/nextjs/utils.js.map +0 -1
  125. package/dist/cjs/src/nextjs/worker/index.d.ts +0 -2
  126. package/dist/cjs/src/nextjs/worker/index.d.ts.map +0 -1
  127. package/dist/cjs/src/nextjs/worker/index.js +0 -8
  128. package/dist/cjs/src/nextjs/worker/index.js.map +0 -1
  129. package/dist/cjs/src/reactjs/components/NextLogOut.d.ts +0 -7
  130. package/dist/cjs/src/reactjs/components/NextLogOut.d.ts.map +0 -1
  131. package/dist/cjs/src/reactjs/components/NextLogOut.js +0 -18
  132. package/dist/cjs/src/reactjs/components/NextLogOut.js.map +0 -1
  133. package/dist/cjs/src/reactjs/components/SignInButton.d.ts +0 -8
  134. package/dist/cjs/src/reactjs/components/SignInButton.d.ts.map +0 -1
  135. package/dist/cjs/src/reactjs/components/SignInButton.js +0 -16
  136. package/dist/cjs/src/reactjs/components/SignInButton.js.map +0 -1
  137. package/dist/cjs/src/reactjs/components/SignOutButton.d.ts +0 -6
  138. package/dist/cjs/src/reactjs/components/SignOutButton.d.ts.map +0 -1
  139. package/dist/cjs/src/reactjs/components/SignOutButton.js +0 -16
  140. package/dist/cjs/src/reactjs/components/SignOutButton.js.map +0 -1
  141. package/dist/cjs/src/reactjs/components/UserButton.d.ts +0 -8
  142. package/dist/cjs/src/reactjs/components/UserButton.d.ts.map +0 -1
  143. package/dist/cjs/src/reactjs/components/UserButton.js +0 -84
  144. package/dist/cjs/src/reactjs/components/UserButton.js.map +0 -1
  145. package/dist/cjs/src/reactjs/components/index.d.ts +0 -6
  146. package/dist/cjs/src/reactjs/components/index.d.ts.map +0 -1
  147. package/dist/cjs/src/reactjs/components/index.js +0 -14
  148. package/dist/cjs/src/reactjs/components/index.js.map +0 -1
  149. package/dist/cjs/src/reactjs/hooks/index.d.ts +0 -9
  150. package/dist/cjs/src/reactjs/hooks/index.d.ts.map +0 -1
  151. package/dist/cjs/src/reactjs/hooks/index.js +0 -20
  152. package/dist/cjs/src/reactjs/hooks/index.js.map +0 -1
  153. package/dist/cjs/src/reactjs/hooks/useAuth.d.ts +0 -3
  154. package/dist/cjs/src/reactjs/hooks/useAuth.d.ts.map +0 -1
  155. package/dist/cjs/src/reactjs/hooks/useAuth.js +0 -15
  156. package/dist/cjs/src/reactjs/hooks/useAuth.js.map +0 -1
  157. package/dist/cjs/src/reactjs/hooks/useUser.d.ts +0 -4
  158. package/dist/cjs/src/reactjs/hooks/useUser.d.ts.map +0 -1
  159. package/dist/cjs/src/reactjs/hooks/useUser.js +0 -15
  160. package/dist/cjs/src/reactjs/hooks/useUser.js.map +0 -1
  161. package/dist/cjs/src/reactjs/index.d.ts +0 -6
  162. package/dist/cjs/src/reactjs/index.d.ts.map +0 -1
  163. package/dist/cjs/src/reactjs/index.js +0 -30
  164. package/dist/cjs/src/reactjs/index.js.map +0 -1
  165. package/dist/cjs/src/reactjs/providers/index.d.ts +0 -8
  166. package/dist/cjs/src/reactjs/providers/index.d.ts.map +0 -1
  167. package/dist/cjs/src/reactjs/providers/index.js +0 -19
  168. package/dist/cjs/src/reactjs/providers/index.js.map +0 -1
  169. package/dist/cjs/src/server/ServerAuthenticationResolver.d.ts +0 -18
  170. package/dist/cjs/src/server/ServerAuthenticationResolver.d.ts.map +0 -1
  171. package/dist/cjs/src/server/ServerAuthenticationResolver.js +0 -66
  172. package/dist/cjs/src/server/ServerAuthenticationResolver.js.map +0 -1
  173. package/dist/cjs/src/server/config.d.ts +0 -16
  174. package/dist/cjs/src/server/config.d.ts.map +0 -1
  175. package/dist/cjs/src/server/config.js +0 -3
  176. package/dist/cjs/src/server/config.js.map +0 -1
  177. package/dist/cjs/src/server/index.d.ts +0 -6
  178. package/dist/cjs/src/server/index.d.ts.map +0 -1
  179. package/dist/cjs/src/server/index.js +0 -14
  180. package/dist/cjs/src/server/index.js.map +0 -1
  181. package/dist/cjs/src/server/login.d.ts +0 -17
  182. package/dist/cjs/src/server/login.d.ts.map +0 -1
  183. package/dist/cjs/src/server/login.js +0 -42
  184. package/dist/cjs/src/server/login.js.map +0 -1
  185. package/dist/cjs/src/server/refresh.d.ts +0 -7
  186. package/dist/cjs/src/server/refresh.d.ts.map +0 -1
  187. package/dist/cjs/src/server/refresh.js +0 -16
  188. package/dist/cjs/src/server/refresh.js.map +0 -1
  189. package/dist/cjs/src/services/AuthenticationService.d.ts +0 -87
  190. package/dist/cjs/src/services/AuthenticationService.d.ts.map +0 -1
  191. package/dist/cjs/src/services/AuthenticationService.js +0 -228
  192. package/dist/cjs/src/services/AuthenticationService.js.map +0 -1
  193. package/dist/cjs/src/services/PKCE.d.ts +0 -20
  194. package/dist/cjs/src/services/PKCE.d.ts.map +0 -1
  195. package/dist/cjs/src/services/PKCE.js +0 -50
  196. package/dist/cjs/src/services/PKCE.js.map +0 -1
  197. package/dist/cjs/src/services/types.d.ts +0 -23
  198. package/dist/cjs/src/services/types.d.ts.map +0 -1
  199. package/dist/cjs/src/services/types.js +0 -11
  200. package/dist/cjs/src/services/types.js.map +0 -1
  201. package/dist/cjs/src/shared/AuthContext.d.ts +0 -10
  202. package/dist/cjs/src/shared/AuthContext.d.ts.map +0 -1
  203. package/dist/cjs/src/shared/AuthContext.js +0 -6
  204. package/dist/cjs/src/shared/AuthContext.js.map +0 -1
  205. package/dist/cjs/src/shared/AuthProvider.d.ts +0 -18
  206. package/dist/cjs/src/shared/AuthProvider.d.ts.map +0 -1
  207. package/dist/cjs/src/shared/AuthProvider.js +0 -276
  208. package/dist/cjs/src/shared/AuthProvider.js.map +0 -1
  209. package/dist/cjs/src/shared/CivicAuthProvider.d.ts +0 -7
  210. package/dist/cjs/src/shared/CivicAuthProvider.d.ts.map +0 -1
  211. package/dist/cjs/src/shared/CivicAuthProvider.js +0 -23
  212. package/dist/cjs/src/shared/CivicAuthProvider.js.map +0 -1
  213. package/dist/cjs/src/shared/GenericAuthenticationRefresher.d.ts +0 -15
  214. package/dist/cjs/src/shared/GenericAuthenticationRefresher.d.ts.map +0 -1
  215. package/dist/cjs/src/shared/GenericAuthenticationRefresher.js +0 -47
  216. package/dist/cjs/src/shared/GenericAuthenticationRefresher.js.map +0 -1
  217. package/dist/cjs/src/shared/UserProvider.d.ts +0 -18
  218. package/dist/cjs/src/shared/UserProvider.d.ts.map +0 -1
  219. package/dist/cjs/src/shared/UserProvider.js +0 -65
  220. package/dist/cjs/src/shared/UserProvider.js.map +0 -1
  221. package/dist/cjs/src/shared/UserSession.d.ts +0 -12
  222. package/dist/cjs/src/shared/UserSession.d.ts.map +0 -1
  223. package/dist/cjs/src/shared/UserSession.js +0 -24
  224. package/dist/cjs/src/shared/UserSession.js.map +0 -1
  225. package/dist/cjs/src/shared/components/CivicAuthIframe.d.ts +0 -8
  226. package/dist/cjs/src/shared/components/CivicAuthIframe.d.ts.map +0 -1
  227. package/dist/cjs/src/shared/components/CivicAuthIframe.js +0 -35
  228. package/dist/cjs/src/shared/components/CivicAuthIframe.js.map +0 -1
  229. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.d.ts +0 -9
  230. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.d.ts.map +0 -1
  231. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.js +0 -117
  232. package/dist/cjs/src/shared/components/CivicAuthIframeContainer.js.map +0 -1
  233. package/dist/cjs/src/shared/components/CloseIcon.d.ts +0 -4
  234. package/dist/cjs/src/shared/components/CloseIcon.d.ts.map +0 -1
  235. package/dist/cjs/src/shared/components/CloseIcon.js +0 -12
  236. package/dist/cjs/src/shared/components/CloseIcon.js.map +0 -1
  237. package/dist/cjs/src/shared/components/LoadingIcon.d.ts +0 -4
  238. package/dist/cjs/src/shared/components/LoadingIcon.d.ts.map +0 -1
  239. package/dist/cjs/src/shared/components/LoadingIcon.js +0 -14
  240. package/dist/cjs/src/shared/components/LoadingIcon.js.map +0 -1
  241. package/dist/cjs/src/shared/hooks/index.d.ts +0 -5
  242. package/dist/cjs/src/shared/hooks/index.d.ts.map +0 -1
  243. package/dist/cjs/src/shared/hooks/index.js +0 -12
  244. package/dist/cjs/src/shared/hooks/index.js.map +0 -1
  245. package/dist/cjs/src/shared/hooks/useAuth.d.ts +0 -3
  246. package/dist/cjs/src/shared/hooks/useAuth.d.ts.map +0 -1
  247. package/dist/cjs/src/shared/hooks/useAuth.js +0 -15
  248. package/dist/cjs/src/shared/hooks/useAuth.js.map +0 -1
  249. package/dist/cjs/src/shared/hooks/useConfig.d.ts +0 -3
  250. package/dist/cjs/src/shared/hooks/useConfig.d.ts.map +0 -1
  251. package/dist/cjs/src/shared/hooks/useConfig.js +0 -16
  252. package/dist/cjs/src/shared/hooks/useConfig.js.map +0 -1
  253. package/dist/cjs/src/shared/hooks/useIframe.d.ts +0 -3
  254. package/dist/cjs/src/shared/hooks/useIframe.d.ts.map +0 -1
  255. package/dist/cjs/src/shared/hooks/useIframe.js +0 -16
  256. package/dist/cjs/src/shared/hooks/useIframe.js.map +0 -1
  257. package/dist/cjs/src/shared/hooks/useSession.d.ts +0 -3
  258. package/dist/cjs/src/shared/hooks/useSession.d.ts.map +0 -1
  259. package/dist/cjs/src/shared/hooks/useSession.js +0 -16
  260. package/dist/cjs/src/shared/hooks/useSession.js.map +0 -1
  261. package/dist/cjs/src/shared/hooks/useToken.d.ts +0 -3
  262. package/dist/cjs/src/shared/hooks/useToken.d.ts.map +0 -1
  263. package/dist/cjs/src/shared/hooks/useToken.js +0 -15
  264. package/dist/cjs/src/shared/hooks/useToken.js.map +0 -1
  265. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.d.ts +0 -15
  266. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +0 -1
  267. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.js +0 -47
  268. package/dist/cjs/src/shared/lib/GenericAuthenticationRefresher.js.map +0 -1
  269. package/dist/cjs/src/shared/lib/UserSession.d.ts +0 -12
  270. package/dist/cjs/src/shared/lib/UserSession.d.ts.map +0 -1
  271. package/dist/cjs/src/shared/lib/UserSession.js +0 -24
  272. package/dist/cjs/src/shared/lib/UserSession.js.map +0 -1
  273. package/dist/cjs/src/shared/lib/session.d.ts +0 -3
  274. package/dist/cjs/src/shared/lib/session.d.ts.map +0 -1
  275. package/dist/cjs/src/shared/lib/session.js +0 -13
  276. package/dist/cjs/src/shared/lib/session.js.map +0 -1
  277. package/dist/cjs/src/shared/lib/storage.d.ts +0 -25
  278. package/dist/cjs/src/shared/lib/storage.d.ts.map +0 -1
  279. package/dist/cjs/src/shared/lib/storage.js +0 -21
  280. package/dist/cjs/src/shared/lib/storage.js.map +0 -1
  281. package/dist/cjs/src/shared/lib/types.d.ts +0 -21
  282. package/dist/cjs/src/shared/lib/types.d.ts.map +0 -1
  283. package/dist/cjs/src/shared/lib/types.js +0 -18
  284. package/dist/cjs/src/shared/lib/types.js.map +0 -1
  285. package/dist/cjs/src/shared/lib/util.d.ts +0 -33
  286. package/dist/cjs/src/shared/lib/util.d.ts.map +0 -1
  287. package/dist/cjs/src/shared/lib/util.js +0 -164
  288. package/dist/cjs/src/shared/lib/util.js.map +0 -1
  289. package/dist/cjs/src/shared/providers/AuthContext.d.ts +0 -10
  290. package/dist/cjs/src/shared/providers/AuthContext.d.ts.map +0 -1
  291. package/dist/cjs/src/shared/providers/AuthContext.js +0 -6
  292. package/dist/cjs/src/shared/providers/AuthContext.js.map +0 -1
  293. package/dist/cjs/src/shared/providers/AuthProvider.d.ts +0 -18
  294. package/dist/cjs/src/shared/providers/AuthProvider.d.ts.map +0 -1
  295. package/dist/cjs/src/shared/providers/AuthProvider.js +0 -271
  296. package/dist/cjs/src/shared/providers/AuthProvider.js.map +0 -1
  297. package/dist/cjs/src/shared/providers/CivicAuthProvider.d.ts +0 -6
  298. package/dist/cjs/src/shared/providers/CivicAuthProvider.d.ts.map +0 -1
  299. package/dist/cjs/src/shared/providers/CivicAuthProvider.js +0 -23
  300. package/dist/cjs/src/shared/providers/CivicAuthProvider.js.map +0 -1
  301. package/dist/cjs/src/shared/providers/ConfigProvider.d.ts +0 -21
  302. package/dist/cjs/src/shared/providers/ConfigProvider.d.ts.map +0 -1
  303. package/dist/cjs/src/shared/providers/ConfigProvider.js +0 -46
  304. package/dist/cjs/src/shared/providers/ConfigProvider.js.map +0 -1
  305. package/dist/cjs/src/shared/providers/IframeProvider.d.ts +0 -16
  306. package/dist/cjs/src/shared/providers/IframeProvider.d.ts.map +0 -1
  307. package/dist/cjs/src/shared/providers/IframeProvider.js +0 -38
  308. package/dist/cjs/src/shared/providers/IframeProvider.js.map +0 -1
  309. package/dist/cjs/src/shared/providers/SessionProvider.d.ts +0 -13
  310. package/dist/cjs/src/shared/providers/SessionProvider.d.ts.map +0 -1
  311. package/dist/cjs/src/shared/providers/SessionProvider.js +0 -40
  312. package/dist/cjs/src/shared/providers/SessionProvider.js.map +0 -1
  313. package/dist/cjs/src/shared/providers/TokenProvider.d.ts +0 -18
  314. package/dist/cjs/src/shared/providers/TokenProvider.d.ts.map +0 -1
  315. package/dist/cjs/src/shared/providers/TokenProvider.js +0 -80
  316. package/dist/cjs/src/shared/providers/TokenProvider.js.map +0 -1
  317. package/dist/cjs/src/shared/providers/UserProvider.d.ts +0 -18
  318. package/dist/cjs/src/shared/providers/UserProvider.d.ts.map +0 -1
  319. package/dist/cjs/src/shared/providers/UserProvider.js +0 -65
  320. package/dist/cjs/src/shared/providers/UserProvider.js.map +0 -1
  321. package/dist/cjs/src/shared/session.d.ts +0 -3
  322. package/dist/cjs/src/shared/session.d.ts.map +0 -1
  323. package/dist/cjs/src/shared/session.js +0 -13
  324. package/dist/cjs/src/shared/session.js.map +0 -1
  325. package/dist/cjs/src/shared/storage.d.ts +0 -25
  326. package/dist/cjs/src/shared/storage.d.ts.map +0 -1
  327. package/dist/cjs/src/shared/storage.js +0 -21
  328. package/dist/cjs/src/shared/storage.js.map +0 -1
  329. package/dist/cjs/src/shared/types.d.ts +0 -21
  330. package/dist/cjs/src/shared/types.d.ts.map +0 -1
  331. package/dist/cjs/src/shared/types.js +0 -18
  332. package/dist/cjs/src/shared/types.js.map +0 -1
  333. package/dist/cjs/src/shared/util.d.ts +0 -33
  334. package/dist/cjs/src/shared/util.d.ts.map +0 -1
  335. package/dist/cjs/src/shared/util.js +0 -164
  336. package/dist/cjs/src/shared/util.js.map +0 -1
  337. package/dist/cjs/src/types.d.ts +0 -146
  338. package/dist/cjs/src/types.d.ts.map +0 -1
  339. package/dist/cjs/src/types.js +0 -3
  340. package/dist/cjs/src/types.js.map +0 -1
  341. package/dist/cjs/src/utils.d.ts +0 -17
  342. package/dist/cjs/src/utils.d.ts.map +0 -1
  343. package/dist/cjs/src/utils.js +0 -53
  344. package/dist/cjs/src/utils.js.map +0 -1
  345. package/dist/cjs/src/worker/index.d.ts +0 -2
  346. package/dist/cjs/src/worker/index.d.ts.map +0 -1
  347. package/dist/cjs/src/worker/index.js +0 -8
  348. package/dist/cjs/src/worker/index.js.map +0 -1
  349. package/dist/cjs/tsconfig.build.tsbuildinfo +0 -1
  350. package/dist/cjs/tsconfig.cjs.tsbuildinfo +0 -1
  351. package/dist/esm/src/browser/storage.d.ts +0 -6
  352. package/dist/esm/src/browser/storage.d.ts.map +0 -1
  353. package/dist/esm/src/browser/storage.js +0 -9
  354. package/dist/esm/src/browser/storage.js.map +0 -1
  355. package/dist/esm/src/config.d.ts +0 -3
  356. package/dist/esm/src/config.d.ts.map +0 -1
  357. package/dist/esm/src/config.js +0 -5
  358. package/dist/esm/src/config.js.map +0 -1
  359. package/dist/esm/src/constants.d.ts +0 -9
  360. package/dist/esm/src/constants.d.ts.map +0 -1
  361. package/dist/esm/src/constants.js +0 -17
  362. package/dist/esm/src/constants.js.map +0 -1
  363. package/dist/esm/src/index.d.ts +0 -5
  364. package/dist/esm/src/index.d.ts.map +0 -1
  365. package/dist/esm/src/index.js +0 -3
  366. package/dist/esm/src/index.js.map +0 -1
  367. package/dist/esm/src/lib/cookies.d.ts +0 -7
  368. package/dist/esm/src/lib/cookies.d.ts.map +0 -1
  369. package/dist/esm/src/lib/cookies.js +0 -23
  370. package/dist/esm/src/lib/cookies.js.map +0 -1
  371. package/dist/esm/src/lib/jwt.d.ts +0 -3
  372. package/dist/esm/src/lib/jwt.d.ts.map +0 -1
  373. package/dist/esm/src/lib/jwt.js +0 -9
  374. package/dist/esm/src/lib/jwt.js.map +0 -1
  375. package/dist/esm/src/lib/logger.d.ts +0 -26
  376. package/dist/esm/src/lib/logger.d.ts.map +0 -1
  377. package/dist/esm/src/lib/logger.js +0 -55
  378. package/dist/esm/src/lib/logger.js.map +0 -1
  379. package/dist/esm/src/lib/oauth.d.ts +0 -19
  380. package/dist/esm/src/lib/oauth.d.ts.map +0 -1
  381. package/dist/esm/src/lib/oauth.js +0 -60
  382. package/dist/esm/src/lib/oauth.js.map +0 -1
  383. package/dist/esm/src/lib/postMessage.d.ts +0 -4
  384. package/dist/esm/src/lib/postMessage.d.ts.map +0 -1
  385. package/dist/esm/src/lib/postMessage.js +0 -15
  386. package/dist/esm/src/lib/postMessage.js.map +0 -1
  387. package/dist/esm/src/lib/windowUtil.d.ts +0 -4
  388. package/dist/esm/src/lib/windowUtil.d.ts.map +0 -1
  389. package/dist/esm/src/lib/windowUtil.js +0 -30
  390. package/dist/esm/src/lib/windowUtil.js.map +0 -1
  391. package/dist/esm/src/nextjs/GetUser.d.ts +0 -6
  392. package/dist/esm/src/nextjs/GetUser.d.ts.map +0 -1
  393. package/dist/esm/src/nextjs/GetUser.js +0 -18
  394. package/dist/esm/src/nextjs/GetUser.js.map +0 -1
  395. package/dist/esm/src/nextjs/client/index.d.ts +0 -2
  396. package/dist/esm/src/nextjs/client/index.d.ts.map +0 -1
  397. package/dist/esm/src/nextjs/client/index.js +0 -2
  398. package/dist/esm/src/nextjs/client/index.js.map +0 -1
  399. package/dist/esm/src/nextjs/config.d.ts +0 -180
  400. package/dist/esm/src/nextjs/config.d.ts.map +0 -1
  401. package/dist/esm/src/nextjs/config.js +0 -158
  402. package/dist/esm/src/nextjs/config.js.map +0 -1
  403. package/dist/esm/src/nextjs/cookies.d.ts +0 -30
  404. package/dist/esm/src/nextjs/cookies.d.ts.map +0 -1
  405. package/dist/esm/src/nextjs/cookies.js +0 -109
  406. package/dist/esm/src/nextjs/cookies.js.map +0 -1
  407. package/dist/esm/src/nextjs/hooks/index.d.ts +0 -2
  408. package/dist/esm/src/nextjs/hooks/index.d.ts.map +0 -1
  409. package/dist/esm/src/nextjs/hooks/index.js +0 -2
  410. package/dist/esm/src/nextjs/hooks/index.js.map +0 -1
  411. package/dist/esm/src/nextjs/hooks/useTokenCookie.d.ts +0 -3
  412. package/dist/esm/src/nextjs/hooks/useTokenCookie.d.ts.map +0 -1
  413. package/dist/esm/src/nextjs/hooks/useTokenCookie.js +0 -37
  414. package/dist/esm/src/nextjs/hooks/useTokenCookie.js.map +0 -1
  415. package/dist/esm/src/nextjs/hooks/useUserCookie.d.ts +0 -3
  416. package/dist/esm/src/nextjs/hooks/useUserCookie.d.ts.map +0 -1
  417. package/dist/esm/src/nextjs/hooks/useUserCookie.js +0 -36
  418. package/dist/esm/src/nextjs/hooks/useUserCookie.js.map +0 -1
  419. package/dist/esm/src/nextjs/index.d.ts +0 -7
  420. package/dist/esm/src/nextjs/index.d.ts.map +0 -1
  421. package/dist/esm/src/nextjs/index.js +0 -6
  422. package/dist/esm/src/nextjs/index.js.map +0 -1
  423. package/dist/esm/src/nextjs/middleware/index.d.ts +0 -2
  424. package/dist/esm/src/nextjs/middleware/index.d.ts.map +0 -1
  425. package/dist/esm/src/nextjs/middleware/index.js +0 -2
  426. package/dist/esm/src/nextjs/middleware/index.js.map +0 -1
  427. package/dist/esm/src/nextjs/middleware.d.ts +0 -59
  428. package/dist/esm/src/nextjs/middleware.d.ts.map +0 -1
  429. package/dist/esm/src/nextjs/middleware.js +0 -107
  430. package/dist/esm/src/nextjs/middleware.js.map +0 -1
  431. package/dist/esm/src/nextjs/providers/NextAuthProvider.d.ts +0 -9
  432. package/dist/esm/src/nextjs/providers/NextAuthProvider.d.ts.map +0 -1
  433. package/dist/esm/src/nextjs/providers/NextAuthProvider.js +0 -51
  434. package/dist/esm/src/nextjs/providers/NextAuthProvider.js.map +0 -1
  435. package/dist/esm/src/nextjs/routeHandler.d.ts +0 -18
  436. package/dist/esm/src/nextjs/routeHandler.d.ts.map +0 -1
  437. package/dist/esm/src/nextjs/routeHandler.js +0 -203
  438. package/dist/esm/src/nextjs/routeHandler.js.map +0 -1
  439. package/dist/esm/src/nextjs/utils.d.ts +0 -3
  440. package/dist/esm/src/nextjs/utils.d.ts.map +0 -1
  441. package/dist/esm/src/nextjs/utils.js +0 -6
  442. package/dist/esm/src/nextjs/utils.js.map +0 -1
  443. package/dist/esm/src/nextjs/worker/index.d.ts +0 -2
  444. package/dist/esm/src/nextjs/worker/index.d.ts.map +0 -1
  445. package/dist/esm/src/nextjs/worker/index.js +0 -2
  446. package/dist/esm/src/nextjs/worker/index.js.map +0 -1
  447. package/dist/esm/src/reactjs/components/NextLogOut.d.ts +0 -7
  448. package/dist/esm/src/reactjs/components/NextLogOut.d.ts.map +0 -1
  449. package/dist/esm/src/reactjs/components/NextLogOut.js +0 -12
  450. package/dist/esm/src/reactjs/components/NextLogOut.js.map +0 -1
  451. package/dist/esm/src/reactjs/components/SignInButton.d.ts +0 -8
  452. package/dist/esm/src/reactjs/components/SignInButton.d.ts.map +0 -1
  453. package/dist/esm/src/reactjs/components/SignInButton.js +0 -10
  454. package/dist/esm/src/reactjs/components/SignInButton.js.map +0 -1
  455. package/dist/esm/src/reactjs/components/SignOutButton.d.ts +0 -6
  456. package/dist/esm/src/reactjs/components/SignOutButton.d.ts.map +0 -1
  457. package/dist/esm/src/reactjs/components/SignOutButton.js +0 -10
  458. package/dist/esm/src/reactjs/components/SignOutButton.js.map +0 -1
  459. package/dist/esm/src/reactjs/components/UserButton.d.ts +0 -8
  460. package/dist/esm/src/reactjs/components/UserButton.d.ts.map +0 -1
  461. package/dist/esm/src/reactjs/components/UserButton.js +0 -58
  462. package/dist/esm/src/reactjs/components/UserButton.js.map +0 -1
  463. package/dist/esm/src/reactjs/components/index.d.ts +0 -6
  464. package/dist/esm/src/reactjs/components/index.d.ts.map +0 -1
  465. package/dist/esm/src/reactjs/components/index.js +0 -6
  466. package/dist/esm/src/reactjs/components/index.js.map +0 -1
  467. package/dist/esm/src/reactjs/hooks/index.d.ts +0 -9
  468. package/dist/esm/src/reactjs/hooks/index.d.ts.map +0 -1
  469. package/dist/esm/src/reactjs/hooks/index.js +0 -9
  470. package/dist/esm/src/reactjs/hooks/index.js.map +0 -1
  471. package/dist/esm/src/reactjs/hooks/useAuth.d.ts +0 -3
  472. package/dist/esm/src/reactjs/hooks/useAuth.d.ts.map +0 -1
  473. package/dist/esm/src/reactjs/hooks/useAuth.js +0 -12
  474. package/dist/esm/src/reactjs/hooks/useAuth.js.map +0 -1
  475. package/dist/esm/src/reactjs/hooks/useUser.d.ts +0 -4
  476. package/dist/esm/src/reactjs/hooks/useUser.d.ts.map +0 -1
  477. package/dist/esm/src/reactjs/hooks/useUser.js +0 -12
  478. package/dist/esm/src/reactjs/hooks/useUser.js.map +0 -1
  479. package/dist/esm/src/reactjs/index.d.ts +0 -6
  480. package/dist/esm/src/reactjs/index.d.ts.map +0 -1
  481. package/dist/esm/src/reactjs/index.js +0 -8
  482. package/dist/esm/src/reactjs/index.js.map +0 -1
  483. package/dist/esm/src/reactjs/providers/index.d.ts +0 -8
  484. package/dist/esm/src/reactjs/providers/index.d.ts.map +0 -1
  485. package/dist/esm/src/reactjs/providers/index.js +0 -7
  486. package/dist/esm/src/reactjs/providers/index.js.map +0 -1
  487. package/dist/esm/src/server/ServerAuthenticationResolver.d.ts +0 -18
  488. package/dist/esm/src/server/ServerAuthenticationResolver.d.ts.map +0 -1
  489. package/dist/esm/src/server/ServerAuthenticationResolver.js +0 -62
  490. package/dist/esm/src/server/ServerAuthenticationResolver.js.map +0 -1
  491. package/dist/esm/src/server/config.d.ts +0 -16
  492. package/dist/esm/src/server/config.d.ts.map +0 -1
  493. package/dist/esm/src/server/config.js +0 -2
  494. package/dist/esm/src/server/config.js.map +0 -1
  495. package/dist/esm/src/server/index.d.ts +0 -6
  496. package/dist/esm/src/server/index.d.ts.map +0 -1
  497. package/dist/esm/src/server/index.js +0 -5
  498. package/dist/esm/src/server/index.js.map +0 -1
  499. package/dist/esm/src/server/login.d.ts +0 -17
  500. package/dist/esm/src/server/login.d.ts.map +0 -1
  501. package/dist/esm/src/server/login.js +0 -37
  502. package/dist/esm/src/server/login.js.map +0 -1
  503. package/dist/esm/src/server/refresh.d.ts +0 -7
  504. package/dist/esm/src/server/refresh.d.ts.map +0 -1
  505. package/dist/esm/src/server/refresh.js +0 -13
  506. package/dist/esm/src/server/refresh.js.map +0 -1
  507. package/dist/esm/src/services/AuthenticationService.d.ts +0 -87
  508. package/dist/esm/src/services/AuthenticationService.d.ts.map +0 -1
  509. package/dist/esm/src/services/AuthenticationService.js +0 -222
  510. package/dist/esm/src/services/AuthenticationService.js.map +0 -1
  511. package/dist/esm/src/services/PKCE.d.ts +0 -20
  512. package/dist/esm/src/services/PKCE.d.ts.map +0 -1
  513. package/dist/esm/src/services/PKCE.js +0 -44
  514. package/dist/esm/src/services/PKCE.js.map +0 -1
  515. package/dist/esm/src/services/types.d.ts +0 -23
  516. package/dist/esm/src/services/types.d.ts.map +0 -1
  517. package/dist/esm/src/services/types.js +0 -7
  518. package/dist/esm/src/services/types.js.map +0 -1
  519. package/dist/esm/src/shared/AuthContext.d.ts +0 -10
  520. package/dist/esm/src/shared/AuthContext.d.ts.map +0 -1
  521. package/dist/esm/src/shared/AuthContext.js +0 -3
  522. package/dist/esm/src/shared/AuthContext.js.map +0 -1
  523. package/dist/esm/src/shared/AuthProvider.d.ts +0 -18
  524. package/dist/esm/src/shared/AuthProvider.d.ts.map +0 -1
  525. package/dist/esm/src/shared/AuthProvider.js +0 -250
  526. package/dist/esm/src/shared/AuthProvider.js.map +0 -1
  527. package/dist/esm/src/shared/CivicAuthProvider.d.ts +0 -7
  528. package/dist/esm/src/shared/CivicAuthProvider.d.ts.map +0 -1
  529. package/dist/esm/src/shared/CivicAuthProvider.js +0 -17
  530. package/dist/esm/src/shared/CivicAuthProvider.js.map +0 -1
  531. package/dist/esm/src/shared/GenericAuthenticationRefresher.d.ts +0 -15
  532. package/dist/esm/src/shared/GenericAuthenticationRefresher.d.ts.map +0 -1
  533. package/dist/esm/src/shared/GenericAuthenticationRefresher.js +0 -43
  534. package/dist/esm/src/shared/GenericAuthenticationRefresher.js.map +0 -1
  535. package/dist/esm/src/shared/UserProvider.d.ts +0 -18
  536. package/dist/esm/src/shared/UserProvider.d.ts.map +0 -1
  537. package/dist/esm/src/shared/UserProvider.js +0 -38
  538. package/dist/esm/src/shared/UserProvider.js.map +0 -1
  539. package/dist/esm/src/shared/UserSession.d.ts +0 -12
  540. package/dist/esm/src/shared/UserSession.d.ts.map +0 -1
  541. package/dist/esm/src/shared/UserSession.js +0 -20
  542. package/dist/esm/src/shared/UserSession.js.map +0 -1
  543. package/dist/esm/src/shared/components/CivicAuthIframe.d.ts +0 -8
  544. package/dist/esm/src/shared/components/CivicAuthIframe.d.ts.map +0 -1
  545. package/dist/esm/src/shared/components/CivicAuthIframe.js +0 -9
  546. package/dist/esm/src/shared/components/CivicAuthIframe.js.map +0 -1
  547. package/dist/esm/src/shared/components/CivicAuthIframeContainer.d.ts +0 -9
  548. package/dist/esm/src/shared/components/CivicAuthIframeContainer.d.ts.map +0 -1
  549. package/dist/esm/src/shared/components/CivicAuthIframeContainer.js +0 -91
  550. package/dist/esm/src/shared/components/CivicAuthIframeContainer.js.map +0 -1
  551. package/dist/esm/src/shared/components/CloseIcon.d.ts +0 -4
  552. package/dist/esm/src/shared/components/CloseIcon.d.ts.map +0 -1
  553. package/dist/esm/src/shared/components/CloseIcon.js +0 -6
  554. package/dist/esm/src/shared/components/CloseIcon.js.map +0 -1
  555. package/dist/esm/src/shared/components/LoadingIcon.d.ts +0 -4
  556. package/dist/esm/src/shared/components/LoadingIcon.d.ts.map +0 -1
  557. package/dist/esm/src/shared/components/LoadingIcon.js +0 -8
  558. package/dist/esm/src/shared/components/LoadingIcon.js.map +0 -1
  559. package/dist/esm/src/shared/hooks/index.d.ts +0 -5
  560. package/dist/esm/src/shared/hooks/index.d.ts.map +0 -1
  561. package/dist/esm/src/shared/hooks/index.js +0 -5
  562. package/dist/esm/src/shared/hooks/index.js.map +0 -1
  563. package/dist/esm/src/shared/hooks/useAuth.d.ts +0 -3
  564. package/dist/esm/src/shared/hooks/useAuth.d.ts.map +0 -1
  565. package/dist/esm/src/shared/hooks/useAuth.js +0 -12
  566. package/dist/esm/src/shared/hooks/useAuth.js.map +0 -1
  567. package/dist/esm/src/shared/hooks/useConfig.d.ts +0 -3
  568. package/dist/esm/src/shared/hooks/useConfig.d.ts.map +0 -1
  569. package/dist/esm/src/shared/hooks/useConfig.js +0 -13
  570. package/dist/esm/src/shared/hooks/useConfig.js.map +0 -1
  571. package/dist/esm/src/shared/hooks/useIframe.d.ts +0 -3
  572. package/dist/esm/src/shared/hooks/useIframe.d.ts.map +0 -1
  573. package/dist/esm/src/shared/hooks/useIframe.js +0 -13
  574. package/dist/esm/src/shared/hooks/useIframe.js.map +0 -1
  575. package/dist/esm/src/shared/hooks/useSession.d.ts +0 -3
  576. package/dist/esm/src/shared/hooks/useSession.d.ts.map +0 -1
  577. package/dist/esm/src/shared/hooks/useSession.js +0 -13
  578. package/dist/esm/src/shared/hooks/useSession.js.map +0 -1
  579. package/dist/esm/src/shared/hooks/useToken.d.ts +0 -3
  580. package/dist/esm/src/shared/hooks/useToken.d.ts.map +0 -1
  581. package/dist/esm/src/shared/hooks/useToken.js +0 -12
  582. package/dist/esm/src/shared/hooks/useToken.js.map +0 -1
  583. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.d.ts +0 -15
  584. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.d.ts.map +0 -1
  585. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.js +0 -43
  586. package/dist/esm/src/shared/lib/GenericAuthenticationRefresher.js.map +0 -1
  587. package/dist/esm/src/shared/lib/UserSession.d.ts +0 -12
  588. package/dist/esm/src/shared/lib/UserSession.d.ts.map +0 -1
  589. package/dist/esm/src/shared/lib/UserSession.js +0 -20
  590. package/dist/esm/src/shared/lib/UserSession.js.map +0 -1
  591. package/dist/esm/src/shared/lib/session.d.ts +0 -3
  592. package/dist/esm/src/shared/lib/session.d.ts.map +0 -1
  593. package/dist/esm/src/shared/lib/session.js +0 -10
  594. package/dist/esm/src/shared/lib/session.js.map +0 -1
  595. package/dist/esm/src/shared/lib/storage.d.ts +0 -25
  596. package/dist/esm/src/shared/lib/storage.d.ts.map +0 -1
  597. package/dist/esm/src/shared/lib/storage.js +0 -17
  598. package/dist/esm/src/shared/lib/storage.js.map +0 -1
  599. package/dist/esm/src/shared/lib/types.d.ts +0 -21
  600. package/dist/esm/src/shared/lib/types.d.ts.map +0 -1
  601. package/dist/esm/src/shared/lib/types.js +0 -15
  602. package/dist/esm/src/shared/lib/types.js.map +0 -1
  603. package/dist/esm/src/shared/lib/util.d.ts +0 -33
  604. package/dist/esm/src/shared/lib/util.d.ts.map +0 -1
  605. package/dist/esm/src/shared/lib/util.js +0 -128
  606. package/dist/esm/src/shared/lib/util.js.map +0 -1
  607. package/dist/esm/src/shared/providers/AuthContext.d.ts +0 -10
  608. package/dist/esm/src/shared/providers/AuthContext.d.ts.map +0 -1
  609. package/dist/esm/src/shared/providers/AuthContext.js +0 -3
  610. package/dist/esm/src/shared/providers/AuthContext.js.map +0 -1
  611. package/dist/esm/src/shared/providers/AuthProvider.d.ts +0 -18
  612. package/dist/esm/src/shared/providers/AuthProvider.d.ts.map +0 -1
  613. package/dist/esm/src/shared/providers/AuthProvider.js +0 -245
  614. package/dist/esm/src/shared/providers/AuthProvider.js.map +0 -1
  615. package/dist/esm/src/shared/providers/CivicAuthProvider.d.ts +0 -6
  616. package/dist/esm/src/shared/providers/CivicAuthProvider.d.ts.map +0 -1
  617. package/dist/esm/src/shared/providers/CivicAuthProvider.js +0 -17
  618. package/dist/esm/src/shared/providers/CivicAuthProvider.js.map +0 -1
  619. package/dist/esm/src/shared/providers/ConfigProvider.d.ts +0 -21
  620. package/dist/esm/src/shared/providers/ConfigProvider.d.ts.map +0 -1
  621. package/dist/esm/src/shared/providers/ConfigProvider.js +0 -19
  622. package/dist/esm/src/shared/providers/ConfigProvider.js.map +0 -1
  623. package/dist/esm/src/shared/providers/IframeProvider.d.ts +0 -16
  624. package/dist/esm/src/shared/providers/IframeProvider.d.ts.map +0 -1
  625. package/dist/esm/src/shared/providers/IframeProvider.js +0 -11
  626. package/dist/esm/src/shared/providers/IframeProvider.js.map +0 -1
  627. package/dist/esm/src/shared/providers/SessionProvider.d.ts +0 -13
  628. package/dist/esm/src/shared/providers/SessionProvider.d.ts.map +0 -1
  629. package/dist/esm/src/shared/providers/SessionProvider.js +0 -13
  630. package/dist/esm/src/shared/providers/SessionProvider.js.map +0 -1
  631. package/dist/esm/src/shared/providers/TokenProvider.d.ts +0 -18
  632. package/dist/esm/src/shared/providers/TokenProvider.d.ts.map +0 -1
  633. package/dist/esm/src/shared/providers/TokenProvider.js +0 -53
  634. package/dist/esm/src/shared/providers/TokenProvider.js.map +0 -1
  635. package/dist/esm/src/shared/providers/UserProvider.d.ts +0 -18
  636. package/dist/esm/src/shared/providers/UserProvider.d.ts.map +0 -1
  637. package/dist/esm/src/shared/providers/UserProvider.js +0 -38
  638. package/dist/esm/src/shared/providers/UserProvider.js.map +0 -1
  639. package/dist/esm/src/shared/session.d.ts +0 -3
  640. package/dist/esm/src/shared/session.d.ts.map +0 -1
  641. package/dist/esm/src/shared/session.js +0 -10
  642. package/dist/esm/src/shared/session.js.map +0 -1
  643. package/dist/esm/src/shared/storage.d.ts +0 -25
  644. package/dist/esm/src/shared/storage.d.ts.map +0 -1
  645. package/dist/esm/src/shared/storage.js +0 -17
  646. package/dist/esm/src/shared/storage.js.map +0 -1
  647. package/dist/esm/src/shared/types.d.ts +0 -21
  648. package/dist/esm/src/shared/types.d.ts.map +0 -1
  649. package/dist/esm/src/shared/types.js +0 -15
  650. package/dist/esm/src/shared/types.js.map +0 -1
  651. package/dist/esm/src/shared/util.d.ts +0 -33
  652. package/dist/esm/src/shared/util.d.ts.map +0 -1
  653. package/dist/esm/src/shared/util.js +0 -128
  654. package/dist/esm/src/shared/util.js.map +0 -1
  655. package/dist/esm/src/types.d.ts +0 -146
  656. package/dist/esm/src/types.d.ts.map +0 -1
  657. package/dist/esm/src/types.js +0 -2
  658. package/dist/esm/src/types.js.map +0 -1
  659. package/dist/esm/src/utils.d.ts +0 -17
  660. package/dist/esm/src/utils.d.ts.map +0 -1
  661. package/dist/esm/src/utils.js +0 -48
  662. package/dist/esm/src/utils.js.map +0 -1
  663. package/dist/esm/src/worker/index.d.ts +0 -2
  664. package/dist/esm/src/worker/index.d.ts.map +0 -1
  665. package/dist/esm/src/worker/index.js +0 -2
  666. package/dist/esm/src/worker/index.js.map +0 -1
  667. package/dist/esm/tsconfig.build.tsbuildinfo +0 -1
  668. package/dist/esm/tsconfig.esm.tsbuildinfo +0 -1
  669. package/postcss.config.cjs +0 -6
  670. package/src/browser/storage.ts +0 -11
  671. package/src/config.ts +0 -6
  672. package/src/constants.ts +0 -29
  673. package/src/index.ts +0 -18
  674. package/src/lib/cookies.ts +0 -28
  675. package/src/lib/jwt.ts +0 -15
  676. package/src/lib/logger.ts +0 -72
  677. package/src/lib/oauth.ts +0 -83
  678. package/src/lib/postMessage.ts +0 -22
  679. package/src/lib/windowUtil.ts +0 -29
  680. package/src/nextjs/GetUser.ts +0 -22
  681. package/src/nextjs/client/index.ts +0 -4
  682. package/src/nextjs/config.ts +0 -203
  683. package/src/nextjs/cookies.ts +0 -166
  684. package/src/nextjs/hooks/index.ts +0 -1
  685. package/src/nextjs/hooks/useTokenCookie.ts +0 -41
  686. package/src/nextjs/hooks/useUserCookie.ts +0 -41
  687. package/src/nextjs/index.ts +0 -24
  688. package/src/nextjs/middleware/index.ts +0 -1
  689. package/src/nextjs/middleware.ts +0 -155
  690. package/src/nextjs/providers/NextAuthProvider.tsx +0 -89
  691. package/src/nextjs/routeHandler.ts +0 -276
  692. package/src/nextjs/utils.ts +0 -10
  693. package/src/reactjs/components/SignInButton.tsx +0 -30
  694. package/src/reactjs/components/SignOutButton.tsx +0 -22
  695. package/src/reactjs/components/UserButton.tsx +0 -153
  696. package/src/reactjs/components/index.ts +0 -5
  697. package/src/reactjs/hooks/index.ts +0 -8
  698. package/src/reactjs/hooks/useAuth.ts +0 -15
  699. package/src/reactjs/hooks/useUser.ts +0 -20
  700. package/src/reactjs/index.ts +0 -19
  701. package/src/reactjs/providers/index.ts +0 -27
  702. package/src/server/ServerAuthenticationResolver.ts +0 -107
  703. package/src/server/config.ts +0 -17
  704. package/src/server/index.ts +0 -12
  705. package/src/server/login.ts +0 -58
  706. package/src/server/refresh.ts +0 -23
  707. package/src/services/AuthenticationService.ts +0 -334
  708. package/src/services/PKCE.ts +0 -43
  709. package/src/services/types.ts +0 -54
  710. package/src/shared/components/CivicAuthIframe.tsx +0 -26
  711. package/src/shared/components/CivicAuthIframeContainer.tsx +0 -150
  712. package/src/shared/components/CloseIcon.tsx +0 -21
  713. package/src/shared/components/LoadingIcon.tsx +0 -25
  714. package/src/shared/hooks/index.ts +0 -4
  715. package/src/shared/hooks/useAuth.ts +0 -15
  716. package/src/shared/hooks/useConfig.ts +0 -14
  717. package/src/shared/hooks/useIframe.ts +0 -14
  718. package/src/shared/hooks/useSession.ts +0 -14
  719. package/src/shared/hooks/useToken.ts +0 -15
  720. package/src/shared/lib/GenericAuthenticationRefresher.ts +0 -75
  721. package/src/shared/lib/UserSession.ts +0 -25
  722. package/src/shared/lib/session.ts +0 -11
  723. package/src/shared/lib/storage.ts +0 -40
  724. package/src/shared/lib/types.ts +0 -25
  725. package/src/shared/lib/util.ts +0 -217
  726. package/src/shared/providers/AuthContext.tsx +0 -11
  727. package/src/shared/providers/AuthProvider.tsx +0 -364
  728. package/src/shared/providers/CivicAuthProvider.tsx +0 -34
  729. package/src/shared/providers/ConfigProvider.tsx +0 -50
  730. package/src/shared/providers/IframeProvider.tsx +0 -34
  731. package/src/shared/providers/SessionProvider.tsx +0 -29
  732. package/src/shared/providers/TokenProvider.tsx +0 -78
  733. package/src/shared/providers/UserProvider.tsx +0 -80
  734. package/src/styles.css +0 -3
  735. package/src/types.ts +0 -227
  736. package/src/utils.ts +0 -65
  737. package/tailwind.config.js +0 -8
  738. package/test/integration/sdk.test.tsx +0 -266
  739. package/test/support/fixtures.ts +0 -56
  740. package/test/support/tokens.json +0 -26
  741. package/test/unit/lib/oauth.test.ts +0 -72
  742. package/test/unit/logger.test.ts +0 -175
  743. package/test/unit/nextjs/NextAuthProvider.test.tsx +0 -38
  744. package/test/unit/nextjs/config.test.ts +0 -201
  745. package/test/unit/nextjs/getUser.test.ts +0 -41
  746. package/test/unit/nextjs/middleware.test.ts +0 -138
  747. package/test/unit/nextjs/routeHandler.test.ts +0 -369
  748. package/test/unit/nextjs/utils.test.ts +0 -26
  749. package/test/unit/publicApi/__snapshots__/apiSnapshot.test.ts.snap +0 -19
  750. package/test/unit/publicApi/apiSnapshot.test.ts +0 -11
  751. package/test/unit/react/components/SignInButton.test.tsx +0 -50
  752. package/test/unit/react/components/SignOutButton.test.tsx +0 -49
  753. package/test/unit/server/login.test.ts +0 -179
  754. package/test/unit/server/session.test.ts +0 -51
  755. package/test/unit/services/AuthenticationService.test.ts +0 -152
  756. package/test/unit/services/ServerAuthenticationResolver.test.ts +0 -110
  757. package/test/unit/shared/GenericAuthenticationRefresher.test.ts +0 -89
  758. package/test/unit/shared/UserSession.test.ts +0 -42
  759. package/test/unit/shared/components/CivicAuthIframeContainer.test.tsx +0 -154
  760. package/test/unit/shared/storage.test.ts +0 -67
  761. package/test/unit/utils.test.ts +0 -48
  762. package/tsconfig.build.json +0 -5
  763. package/tsconfig.cjs.json +0 -8
  764. package/tsconfig.esm.json +0 -7
  765. package/tsconfig.json +0 -42
  766. package/vitest.config.ts +0 -41
@@ -1,2415 +0,0 @@
1
-
2
- 
3
- > @civic/auth@tsc-test-alpha test /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client
4
- > vitest "--run" "--coverage"
5
-
6
-
7
-  RUN  v2.1.2 /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client
8
-  Coverage enabled with v8
9
-
10
- [?25l · test/unit/logger.test.ts (11)
11
- · test/unit/shared/storage.test.ts (3)
12
- [?25l · test/unit/logger.test.ts (11)
13
- ✓ test/unit/shared/storage.test.ts (3)
14
- [?25l ✓ test/unit/logger.test.ts (11)
15
- · test/unit/nextjs/middleware.test.ts (7)
16
- ✓ test/unit/shared/storage.test.ts (3)
17
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > authMiddleware > should allow access when token is present
18
- matching { pattern: '/*', pathname: '/protected', match: true }
19
- → Auth check passed
20
-
21
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > authMiddleware > should skip auth check for redirect to login page
22
- → Skipping auth check - this is the login URL
23
-
24
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > authMiddleware > should not skip auth check for non-GET to login page
25
- matching { pattern: '/*', pathname: '/login', match: true }
26
- → No valid token found - redirecting to login URL {}
27
-
28
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > withAuth > should chain custom middleware when authenticated
29
- matching { pattern: '/*', pathname: '/protected', match: true }
30
- → Auth check passed
31
-
32
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > withAuth > should not chain custom middleware when unauthorized
33
- matching { pattern: '/*', pathname: '/protected', match: true }
34
- → No valid token found - redirecting to login URL {}
35
-
36
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > path matching > should respect include patterns
37
- matching { pattern: '/protected/**', pathname: '/public', match: false }
38
- → Skipping auth check - path not in include patterns
39
-
40
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > path matching > should respect exclude patterns
41
- matching {
42
- pattern: '/protected/**',
43
- pathname: '/protected/public',
44
- match: true
45
- }
46
- matching {
47
- pattern: '/protected/public',
48
- pathname: '/protected/public',
49
- match: true
50
- }
51
- → Skipping auth check - path in exclude patterns
52
-
53
- [?25l · test/unit/nextjs/config.test.ts (9)
54
- ✓ test/unit/logger.test.ts (11)
55
- ✓ test/unit/nextjs/middleware.test.ts (7)
56
- ✓ test/unit/shared/storage.test.ts (3)
57
- [?25l[?25l ✓ test/unit/nextjs/config.test.ts (9)
58
- ✓ test/unit/logger.test.ts (11)
59
- ✓ test/unit/nextjs/middleware.test.ts (7)
60
- · test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
61
- ✓ test/unit/shared/storage.test.ts (3)
62
- [?25lstdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
63
- handleIframeLoad
64
- sameDomainCodeExchangeRequired, calling callback URL again...
65
- handleIframeLoad
66
- sameDomainCodeExchangeRequired, calling callback URL again...
67
-
68
- stdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
69
- handleIframeLoad
70
- handleIframeLoad
71
-
72
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
73
- ✓ test/unit/logger.test.ts (11)
74
- ✓ test/unit/nextjs/middleware.test.ts (7)
75
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
76
- ❯ CivicAuthIframeContainer (3)
77
- ⠙ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
78
- · sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
79
- · does not call onClose if closeOnRedirect is false
80
- ✓ test/unit/shared/storage.test.ts (3)
81
- stdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > does not call onClose if closeOnRedirect is false
82
- handleIframeLoad
83
- sameDomainCodeExchangeRequired, calling callback URL again...
84
- handleIframeLoad
85
- sameDomainCodeExchangeRequired, calling callback URL again...
86
-
87
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
88
- ✓ test/unit/logger.test.ts (11)
89
- ✓ test/unit/nextjs/middleware.test.ts (7)
90
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
91
- ❯ CivicAuthIframeContainer (3)
92
- ⠹ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
93
- · sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
94
- · does not call onClose if closeOnRedirect is false
95
- ✓ test/unit/shared/storage.test.ts (3)
96
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
97
- ✓ test/unit/logger.test.ts (11)
98
- ✓ test/unit/nextjs/middleware.test.ts (7)
99
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
100
- ❯ CivicAuthIframeContainer (3)
101
- ⠸ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
102
- · sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
103
- · does not call onClose if closeOnRedirect is false
104
- ✓ test/unit/shared/storage.test.ts (3)
105
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
106
- ✓ test/unit/logger.test.ts (11)
107
- ✓ test/unit/nextjs/middleware.test.ts (7)
108
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
109
- ✓ test/unit/shared/storage.test.ts (3)
110
- [?25lstdout | test/unit/shared/GenericAuthenticationRefresher.test.ts > GenericAuthenticationRefresher > init > should initialize OAuth2 client with resolved endpoints
111
- GenericAuthenticationRefresher constructor {
112
- authConfig: {
113
- clientId: 'mockClientId',
114
- oauthServer: 'http://mockOauthServer',
115
- redirectUrl: 'http://localhost/redirect'
116
- },
117
- endpointOverrides: undefined
118
- }
119
-
120
- stdout | test/unit/shared/GenericAuthenticationRefresher.test.ts > GenericAuthenticationRefresher > refreshTokens > should refresh tokens and store them
121
- GenericAuthenticationRefresher constructor {
122
- authConfig: {
123
- clientId: 'mockClientId',
124
- oauthServer: 'http://mockOauthServer',
125
- redirectUrl: 'http://localhost/redirect'
126
- },
127
- endpointOverrides: undefined
128
- }
129
-
130
- stdout | test/unit/shared/GenericAuthenticationRefresher.test.ts > GenericAuthenticationRefresher > refreshTokens > should throw an error if no refresh token is available
131
- GenericAuthenticationRefresher constructor {
132
- authConfig: {
133
- clientId: 'mockClientId',
134
- oauthServer: 'http://mockOauthServer',
135
- redirectUrl: 'http://localhost/redirect'
136
- },
137
- endpointOverrides: undefined
138
- }
139
-
140
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
141
- ✓ test/unit/logger.test.ts (11)
142
- ✓ test/unit/nextjs/middleware.test.ts (7)
143
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
144
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
145
- · test/unit/lib/oauth.test.ts (6)
146
- ✓ test/unit/shared/storage.test.ts (3)
147
- stdout | test/unit/services/ServerAuthenticationResolver.test.ts > ServerAuthenticationResolver > init > should initialize OAuth2 client with resolved endpoints
148
- ServerAuthenticationResolver constructor {
149
- authConfig: {
150
- clientId: 'mockClientId',
151
- oauthServer: 'http://mockOauthServer',
152
- redirectUrl: 'http://localhost/redirect',
153
- challengeUrl: 'http://localhost/challenge'
154
- },
155
- storage: {},
156
- endpointOverrides: undefined
157
- }
158
-
159
- stdout | test/unit/services/ServerAuthenticationResolver.test.ts > ServerAuthenticationResolver > tokenExchange > should exchange auth code for tokens and store them
160
- ServerAuthenticationResolver constructor {
161
- authConfig: {
162
- clientId: 'mockClientId',
163
- oauthServer: 'http://mockOauthServer',
164
- redirectUrl: 'http://localhost/redirect',
165
- challengeUrl: 'http://localhost/challenge'
166
- },
167
- storage: {},
168
- endpointOverrides: undefined
169
- }
170
-
171
- stdout | test/unit/services/ServerAuthenticationResolver.test.ts > ServerAuthenticationResolver > tokenExchange > should throw an error if code verifier is not found
172
- ServerAuthenticationResolver constructor {
173
- authConfig: {
174
- clientId: 'mockClientId',
175
- oauthServer: 'http://mockOauthServer',
176
- redirectUrl: 'http://localhost/redirect',
177
- challengeUrl: 'http://localhost/challenge'
178
- },
179
- storage: {},
180
- endpointOverrides: undefined
181
- }
182
-
183
- stdout | test/unit/services/ServerAuthenticationResolver.test.ts > ServerAuthenticationResolver > getSessionData > should retrieve session data from storage
184
- ServerAuthenticationResolver constructor {
185
- authConfig: {
186
- clientId: 'mockClientId',
187
- oauthServer: 'http://mockOauthServer',
188
- redirectUrl: 'http://localhost/redirect',
189
- challengeUrl: 'http://localhost/challenge'
190
- },
191
- storage: {},
192
- endpointOverrides: undefined
193
- }
194
-
195
- stdout | test/unit/services/ServerAuthenticationResolver.test.ts > ServerAuthenticationResolver > getSessionData > should return null if no tokens are found in storage
196
- ServerAuthenticationResolver constructor {
197
- authConfig: {
198
- clientId: 'mockClientId',
199
- oauthServer: 'http://mockOauthServer',
200
- redirectUrl: 'http://localhost/redirect',
201
- challengeUrl: 'http://localhost/challenge'
202
- },
203
- storage: {},
204
- endpointOverrides: undefined
205
- }
206
-
207
- stderr | test/unit/lib/oauth.test.ts > displayModeFromState > should return the display mode from the state
208
- Failed to parse displayMode from state: state DOMException [InvalidCharacterError]: The string to be decoded is not correctly encoded.
209
-  at atob (node:buffer:1296:13)
210
- at Module.displayModeFromState (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/lib/oauth.ts:59:24)
211
- at /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/test/unit/lib/oauth.test.ts:42:20
212
- at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:146:14
213
- at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:533:11
214
- at runWithTimeout (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:61:7)
215
- at runTest (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:986:17)
216
-  at processTicksAndRejections (node:internal/process/task_queues:105:5)
217
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
218
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
219
-
220
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
221
- ✓ test/unit/logger.test.ts (11)
222
- ✓ test/unit/nextjs/middleware.test.ts (7)
223
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
224
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
225
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
226
- · test/unit/lib/oauth.test.ts (6)
227
- ✓ test/unit/shared/storage.test.ts (3)
228
- [?25l ✓ test/unit/nextjs/config.test.ts (9)
229
- ✓ test/unit/logger.test.ts (11)
230
- · test/unit/services/AuthenticationService.test.ts (6)
231
- ✓ test/unit/nextjs/middleware.test.ts (7)
232
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
233
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
234
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
235
- · test/unit/lib/oauth.test.ts (6)
236
- ✓ test/unit/shared/storage.test.ts (3)
237
- [?25l · test/unit/nextjs/routeHandler.test.ts (13)
238
- ✓ test/unit/nextjs/config.test.ts (9)
239
- ✓ test/unit/logger.test.ts (11)
240
- · test/unit/services/AuthenticationService.test.ts (6)
241
- ✓ test/unit/nextjs/middleware.test.ts (7)
242
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
243
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
244
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
245
- ✓ test/unit/lib/oauth.test.ts (6)
246
- ✓ test/unit/shared/storage.test.ts (3)
247
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a login URL
248
- BrowserAuthenticationInitiator constructor {
249
- clientId: 'mockClientId',
250
- redirectUrl: 'http://localhost/redirect',
251
- state: 'mockState',
252
- scopes: [ 'openid', 'profile' ],
253
- displayMode: 'redirect',
254
- oauthServer: 'http://mockOauthServer',
255
- pkceConsumer: {}
256
- }
257
-
258
- stderr | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a login URL
259
- Error: Not implemented: navigation (except hash changes)
260
- at module.exports (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/browser/not-implemented.js:9:17)
261
- at navigateFetch (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/living/window/navigation.js:77:3)
262
- at exports.navigate (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/living/window/navigation.js:55:3)
263
- at LocationImpl._locationObjectNavigate (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js:31:5)
264
- at LocationImpl._locationObjectSetterNavigate (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js:25:17)
265
- at LocationImpl.set href [as href] (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js:47:10)
266
- at Location.set href [as href] (/Users/flippie/civic/repos/civic-auth/node_modules/jsdom/lib/jsdom/living/generated/Location.js:125:37)
267
- at BrowserAuthenticationInitiator.signIn (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/services/AuthenticationService.ts:115:23)
268
- at processTicksAndRejections (node:internal/process/task_queues:105:5)
269
- at /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/test/unit/services/AuthenticationService.test.ts:54:19 undefined
270
-
271
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a logout URL
272
- BrowserAuthenticationInitiator constructor {
273
- clientId: 'mockClientId',
274
- redirectUrl: 'http://localhost/redirect',
275
- state: 'mockState',
276
- scopes: [ 'openid', 'profile' ],
277
- displayMode: 'redirect',
278
- oauthServer: 'http://mockOauthServer',
279
- pkceConsumer: {}
280
- }
281
-
282
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > GenericAuthenticationInitiator > should generate a login URL
283
- GenericAuthenticationInitiator constructor {
284
- config: {
285
- clientId: 'mockClientId',
286
- redirectUrl: 'http://localhost/redirect',
287
- state: 'mockState',
288
- scopes: [ 'openid', 'profile' ],
289
- displayMode: 'redirect',
290
- oauthServer: 'http://mockOauthServer',
291
- pkceConsumer: {}
292
- }
293
- }
294
-
295
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > GenericAuthenticationInitiator > should generate a logout URL
296
- GenericAuthenticationInitiator constructor {
297
- config: {
298
- clientId: 'mockClientId',
299
- redirectUrl: 'http://localhost/redirect',
300
- state: 'mockState',
301
- scopes: [ 'openid', 'profile' ],
302
- displayMode: 'redirect',
303
- oauthServer: 'http://mockOauthServer',
304
- pkceConsumer: {}
305
- }
306
- }
307
-
308
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationService > should exchange auth code for tokens and store them
309
- BrowserAuthenticationService constructor {
310
- config: {
311
- clientId: 'mockClientId',
312
- redirectUrl: 'http://localhost/redirect',
313
- state: 'mockState',
314
- scopes: [ 'openid', 'profile' ],
315
- displayMode: 'redirect',
316
- oauthServer: 'http://mockOauthServer'
317
- }
318
- }
319
- BrowserAuthenticationInitiator constructor {
320
- clientId: 'mockClientId',
321
- redirectUrl: 'http://localhost/redirect',
322
- state: 'eyJ1dWlkIjoiNzY5NWM0M2MtZjI5NC00MzJjLTg1MTUtMTUzMmJkMGI5NzhiIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
323
- scopes: [ 'openid', 'profile' ],
324
- displayMode: 'redirect',
325
- oauthServer: 'http://mockOauthServer',
326
- pkceConsumer: BrowserPublicClientPKCEProducer {
327
- constructor: [Function: BrowserPublicClientPKCEProducer] {
328
- getMockName: [Function (anonymous)],
329
- mockName: [Function (anonymous)],
330
- mockClear: [Function (anonymous)],
331
- mockReset: [Function (anonymous)],
332
- mockRestore: [Function (anonymous)],
333
- getMockImplementation: [Function (anonymous)],
334
- mockImplementation: [Function (anonymous)],
335
- mockImplementationOnce: [Function (anonymous)],
336
- withImplementation: [Function: withImplementation],
337
- mockReturnThis: [Function (anonymous)],
338
- mockReturnValue: [Function (anonymous)],
339
- mockReturnValueOnce: [Function (anonymous)],
340
- mockResolvedValue: [Function (anonymous)],
341
- mockResolvedValueOnce: [Function (anonymous)],
342
- mockRejectedValue: [Function (anonymous)],
343
- mockRejectedValueOnce: [Function (anonymous)]
344
- },
345
- getCodeChallenge: [Function: getCodeChallenge] {
346
- getMockName: [Function (anonymous)],
347
- mockName: [Function (anonymous)],
348
- mockClear: [Function (anonymous)],
349
- mockReset: [Function (anonymous)],
350
- mockRestore: [Function (anonymous)],
351
- getMockImplementation: [Function (anonymous)],
352
- mockImplementation: [Function (anonymous)],
353
- mockImplementationOnce: [Function (anonymous)],
354
- withImplementation: [Function: withImplementation],
355
- mockReturnThis: [Function (anonymous)],
356
- mockReturnValue: [Function (anonymous)],
357
- mockReturnValueOnce: [Function (anonymous)],
358
- mockResolvedValue: [Function (anonymous)],
359
- mockResolvedValueOnce: [Function (anonymous)],
360
- mockRejectedValue: [Function (anonymous)],
361
- mockRejectedValueOnce: [Function (anonymous)]
362
- },
363
- getCodeVerifier: [Function: getCodeVerifier] {
364
- getMockName: [Function (anonymous)],
365
- mockName: [Function (anonymous)],
366
- mockClear: [Function (anonymous)],
367
- mockReset: [Function (anonymous)],
368
- mockRestore: [Function (anonymous)],
369
- getMockImplementation: [Function (anonymous)],
370
- mockImplementation: [Function (anonymous)],
371
- mockImplementationOnce: [Function (anonymous)],
372
- withImplementation: [Function: withImplementation],
373
- mockReturnThis: [Function (anonymous)],
374
- mockReturnValue: [Function (anonymous)],
375
- mockReturnValueOnce: [Function (anonymous)],
376
- mockResolvedValue: [Function (anonymous)],
377
- mockResolvedValueOnce: [Function (anonymous)],
378
- mockRejectedValue: [Function (anonymous)],
379
- mockRejectedValueOnce: [Function (anonymous)]
380
- }
381
- }
382
- }
383
-
384
- stderr | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationService > should exchange auth code for tokens and store them
385
- Failed to parse displayMode from state: mockState DOMException [InvalidCharacterError]: The string to be decoded is not correctly encoded.
386
-  at atob (node:buffer:1296:13)
387
- at Module.displayModeFromState (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/lib/oauth.ts:59:24)
388
- at BrowserAuthenticationService.tokenExchange (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/services/AuthenticationService.ts:266:31)
389
-  at processTicksAndRejections (node:internal/process/task_queues:105:5)
390
- at /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/test/unit/services/AuthenticationService.test.ts:128:22
391
- at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:533:5
392
- at runTest (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:986:11)
393
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
394
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
395
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
396
-
397
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationService > should retrieve session data from local storage
398
- BrowserAuthenticationService constructor {
399
- config: {
400
- clientId: 'mockClientId',
401
- redirectUrl: 'http://localhost/redirect',
402
- state: 'mockState',
403
- scopes: [ 'openid', 'profile' ],
404
- displayMode: 'redirect',
405
- oauthServer: 'http://mockOauthServer'
406
- }
407
- }
408
- BrowserAuthenticationInitiator constructor {
409
- clientId: 'mockClientId',
410
- redirectUrl: 'http://localhost/redirect',
411
- state: 'eyJ1dWlkIjoiZDhkNzRiNTktNjJmMS00YjIyLWE5YjgtYmRmOTA0YWQyMDBjIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
412
- scopes: [ 'openid', 'profile' ],
413
- displayMode: 'redirect',
414
- oauthServer: 'http://mockOauthServer',
415
- pkceConsumer: BrowserPublicClientPKCEProducer {
416
- constructor: [Function: BrowserPublicClientPKCEProducer] {
417
- getMockName: [Function (anonymous)],
418
- mockName: [Function (anonymous)],
419
- mockClear: [Function (anonymous)],
420
- mockReset: [Function (anonymous)],
421
- mockRestore: [Function (anonymous)],
422
- getMockImplementation: [Function (anonymous)],
423
- mockImplementation: [Function (anonymous)],
424
- mockImplementationOnce: [Function (anonymous)],
425
- withImplementation: [Function: withImplementation],
426
- mockReturnThis: [Function (anonymous)],
427
- mockReturnValue: [Function (anonymous)],
428
- mockReturnValueOnce: [Function (anonymous)],
429
- mockResolvedValue: [Function (anonymous)],
430
- mockResolvedValueOnce: [Function (anonymous)],
431
- mockRejectedValue: [Function (anonymous)],
432
- mockRejectedValueOnce: [Function (anonymous)]
433
- },
434
- getCodeChallenge: [Function: getCodeChallenge] {
435
- getMockName: [Function (anonymous)],
436
- mockName: [Function (anonymous)],
437
- mockClear: [Function (anonymous)],
438
- mockReset: [Function (anonymous)],
439
- mockRestore: [Function (anonymous)],
440
- getMockImplementation: [Function (anonymous)],
441
- mockImplementation: [Function (anonymous)],
442
- mockImplementationOnce: [Function (anonymous)],
443
- withImplementation: [Function: withImplementation],
444
- mockReturnThis: [Function (anonymous)],
445
- mockReturnValue: [Function (anonymous)],
446
- mockReturnValueOnce: [Function (anonymous)],
447
- mockResolvedValue: [Function (anonymous)],
448
- mockResolvedValueOnce: [Function (anonymous)],
449
- mockRejectedValue: [Function (anonymous)],
450
- mockRejectedValueOnce: [Function (anonymous)]
451
- },
452
- getCodeVerifier: [Function: getCodeVerifier] {
453
- getMockName: [Function (anonymous)],
454
- mockName: [Function (anonymous)],
455
- mockClear: [Function (anonymous)],
456
- mockReset: [Function (anonymous)],
457
- mockRestore: [Function (anonymous)],
458
- getMockImplementation: [Function (anonymous)],
459
- mockImplementation: [Function (anonymous)],
460
- mockImplementationOnce: [Function (anonymous)],
461
- withImplementation: [Function: withImplementation],
462
- mockReturnThis: [Function (anonymous)],
463
- mockReturnValue: [Function (anonymous)],
464
- mockReturnValueOnce: [Function (anonymous)],
465
- mockResolvedValue: [Function (anonymous)],
466
- mockResolvedValueOnce: [Function (anonymous)],
467
- mockRejectedValue: [Function (anonymous)],
468
- mockRejectedValueOnce: [Function (anonymous)]
469
- }
470
- }
471
- }
472
-
473
- [?25l · test/unit/nextjs/routeHandler.test.ts (13)
474
- ✓ test/unit/nextjs/config.test.ts (9)
475
- · test/unit/server/login.test.ts (6)
476
- ✓ test/unit/logger.test.ts (11)
477
- · test/unit/services/AuthenticationService.test.ts (6)
478
- ✓ test/unit/nextjs/middleware.test.ts (7)
479
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
480
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
481
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
482
- ✓ test/unit/lib/oauth.test.ts (6)
483
- ✓ test/unit/shared/storage.test.ts (3)
484
- · test/unit/server/session.test.ts (3)
485
- [?25l[?25l · test/unit/nextjs/routeHandler.test.ts (13)
486
- ✓ test/unit/nextjs/config.test.ts (9)
487
- · test/unit/server/login.test.ts (6)
488
- ✓ test/unit/logger.test.ts (11)
489
- ✓ test/unit/services/AuthenticationService.test.ts (6)
490
- ✓ test/unit/nextjs/middleware.test.ts (7)
491
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
492
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
493
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
494
- ✓ test/unit/lib/oauth.test.ts (6)
495
- ✓ test/unit/shared/storage.test.ts (3)
496
- ✓ test/unit/server/session.test.ts (3)
497
- stdout | test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > should handle error when resolving the access code
498
- handleCallback {
499
- request: Request {
500
- method: 'GET',
501
- url: 'https://example.com/api/auth/callback?code=123&state=testState',
502
- headers: Headers {},
503
- destination: '',
504
- referrer: 'about:client',
505
- referrerPolicy: '',
506
- mode: 'cors',
507
- credentials: 'same-origin',
508
- cache: 'default',
509
- redirect: 'follow',
510
- integrity: '',
511
- keepalive: false,
512
- isReloadNavigation: false,
513
- isHistoryNavigation: false,
514
- signal: AbortSignal {}
515
- },
516
- resolvedConfigs: {
517
- oauthServer: 'https://auth.civic.com/oauth',
518
- callbackUrl: '/api/auth/callback',
519
- challengeUrl: '/api/auth/challenge',
520
- logoutUrl: '/api/auth/logout',
521
- loginUrl: '/',
522
- include: [ '/*' ],
523
- exclude: [],
524
- cookies: { tokens: [Object], user: [Object] },
525
- clientId: 'test-client-id'
526
- }
527
- }
528
-
529
- stdout | test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > with code_verifier cookie present on request > should do token exchange
530
- handleCallback {
531
- request: Request {
532
- method: 'GET',
533
- url: 'https://example.com/api/auth/callback?code=123&state=testState',
534
- headers: Headers {},
535
- destination: '',
536
- referrer: 'about:client',
537
- referrerPolicy: '',
538
- mode: 'cors',
539
- credentials: 'same-origin',
540
- cache: 'default',
541
- redirect: 'follow',
542
- integrity: '',
543
- keepalive: false,
544
- isReloadNavigation: false,
545
- isHistoryNavigation: false,
546
- signal: AbortSignal {}
547
- },
548
- resolvedConfigs: {
549
- oauthServer: 'https://auth.civic.com/oauth',
550
- callbackUrl: '/api/auth/callback',
551
- challengeUrl: '/api/auth/challenge',
552
- logoutUrl: '/api/auth/logout',
553
- loginUrl: '/',
554
- include: [ '/*' ],
555
- exclude: [],
556
- cookies: { tokens: [Object], user: [Object] },
557
- clientId: 'test-client-id'
558
- }
559
- }
560
-
561
- stdout | test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > with code_verifier cookie present on request > should return empty html response
562
- handleCallback {
563
- request: Request {
564
- method: 'GET',
565
- url: 'https://example.com/api/auth/callback?code=123&state=testState',
566
- headers: Headers {},
567
- destination: '',
568
- referrer: 'about:client',
569
- referrerPolicy: '',
570
- mode: 'cors',
571
- credentials: 'same-origin',
572
- cache: 'default',
573
- redirect: 'follow',
574
- integrity: '',
575
- keepalive: false,
576
- isReloadNavigation: false,
577
- isHistoryNavigation: false,
578
- signal: AbortSignal {}
579
- },
580
- resolvedConfigs: {
581
- oauthServer: 'https://auth.civic.com/oauth',
582
- callbackUrl: '/api/auth/callback',
583
- challengeUrl: '/api/auth/challenge',
584
- logoutUrl: '/api/auth/logout',
585
- loginUrl: '/',
586
- include: [ '/*' ],
587
- exclude: [],
588
- cookies: { tokens: [Object], user: [Object] },
589
- clientId: 'test-client-id'
590
- }
591
- }
592
-
593
- stdout | test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Logout Handler > should handle revalidation failure gracefully
594
- REVAL PATH [Function: revalidatePath] {
595
- getMockName: [Function (anonymous)],
596
- mockName: [Function (anonymous)],
597
- mockClear: [Function (anonymous)],
598
- mockReset: [Function (anonymous)],
599
- mockRestore: [Function (anonymous)],
600
- getMockImplementation: [Function (anonymous)],
601
- mockImplementation: [Function (anonymous)],
602
- mockImplementationOnce: [Function (anonymous)],
603
- withImplementation: [Function: withImplementation],
604
- mockReturnThis: [Function (anonymous)],
605
- mockReturnValue: [Function (anonymous)],
606
- mockReturnValueOnce: [Function (anonymous)],
607
- mockResolvedValue: [Function (anonymous)],
608
- mockResolvedValueOnce: [Function (anonymous)],
609
- mockRejectedValue: [Function (anonymous)],
610
- mockRejectedValueOnce: [Function (anonymous)]
611
- }
612
-
613
- [?25l · test/unit/nextjs/routeHandler.test.ts (13)
614
- ✓ test/unit/nextjs/config.test.ts (9)
615
- · test/unit/server/login.test.ts (6)
616
- ✓ test/unit/logger.test.ts (11)
617
- ✓ test/unit/services/AuthenticationService.test.ts (6)
618
- ✓ test/unit/nextjs/middleware.test.ts (7)
619
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
620
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
621
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
622
- ✓ test/unit/lib/oauth.test.ts (6)
623
- ✓ test/unit/shared/storage.test.ts (3)
624
- ✓ test/unit/server/session.test.ts (3)
625
- [?25l[?25l · test/unit/nextjs/routeHandler.test.ts (13)
626
- ✓ test/unit/nextjs/config.test.ts (9)
627
- ✓ test/unit/server/login.test.ts (6)
628
- ✓ test/unit/logger.test.ts (11)
629
- ✓ test/unit/services/AuthenticationService.test.ts (6)
630
- ✓ test/unit/nextjs/middleware.test.ts (7)
631
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
632
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
633
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
634
- ✓ test/unit/lib/oauth.test.ts (6)
635
- ✓ test/unit/shared/storage.test.ts (3)
636
- ✓ test/unit/server/session.test.ts (3)
637
- [?25l[?25l[?25l[?25l[?25l × should handle missing parameters
638
- ❯ with all parameters passed in (6)
639
- × should handle error when resolving the access code
640
- ❯ with code_verifier cookie present on request (2)
641
- × should do token exchange
642
- × should return empty html response
643
- ❯ with no code_verifier cookie present on request (3)
644
- ⠙ [ beforeAll ]
645
- ↓ should not do token exchange [skipped]
646
- ↓ in server token-exchange mode (1) [skipped]
647
- ↓ in client token-exchange mode (1) [skipped]
648
- ❯ Logout Handler (5)
649
- ✓ should clear auth cookies
650
- × should handle relative redirect paths
651
- × should handle default redirect to home
652
- × should handle absolute URLs and preserve the domain
653
- × should handle revalidation failure gracefully
654
- ✓ test/unit/nextjs/config.test.ts (9)
655
- ✓ test/unit/server/login.test.ts (6)
656
- ✓ test/unit/logger.test.ts (11)
657
- ✓ test/unit/services/AuthenticationService.test.ts (6)
658
- ✓ test/unit/nextjs/middleware.test.ts (7)
659
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
660
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
661
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
662
- ✓ test/unit/lib/oauth.test.ts (6)
663
- ✓ test/unit/shared/storage.test.ts (3)
664
- ✓ test/unit/server/session.test.ts (3)
665
- [?25l × should handle missing parameters
666
- ❯ with all parameters passed in (6)
667
- × should handle error when resolving the access code
668
- ❯ with code_verifier cookie present on request (2)
669
- × should do token exchange
670
- × should return empty html response
671
- ❯ with no code_verifier cookie present on request (3)
672
- ⠹ [ beforeAll ]
673
- ↓ should not do token exchange [skipped]
674
- ↓ in server token-exchange mode (1) [skipped]
675
- ↓ in client token-exchange mode (1) [skipped]
676
- ❯ Logout Handler (5)
677
- ✓ should clear auth cookies
678
- × should handle relative redirect paths
679
- × should handle default redirect to home
680
- × should handle absolute URLs and preserve the domain
681
- × should handle revalidation failure gracefully
682
- ✓ test/unit/nextjs/config.test.ts (9)
683
- ✓ test/unit/server/login.test.ts (6)
684
- ✓ test/unit/logger.test.ts (11)
685
- ✓ test/unit/services/AuthenticationService.test.ts (6)
686
- ✓ test/unit/nextjs/middleware.test.ts (7)
687
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
688
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
689
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
690
- ✓ test/unit/lib/oauth.test.ts (6)
691
- ✓ test/unit/shared/storage.test.ts (3)
692
- ✓ test/unit/server/session.test.ts (3)
693
- [?25l × should handle missing parameters
694
- ❯ with all parameters passed in (6)
695
- × should handle error when resolving the access code
696
- ❯ with code_verifier cookie present on request (2)
697
- × should do token exchange
698
- × should return empty html response
699
- ❯ with no code_verifier cookie present on request (3)
700
- ⠸ [ beforeAll ]
701
- ↓ should not do token exchange [skipped]
702
- ↓ in server token-exchange mode (1) [skipped]
703
- ↓ in client token-exchange mode (1) [skipped]
704
- ❯ Logout Handler (5)
705
- ✓ should clear auth cookies
706
- × should handle relative redirect paths
707
- × should handle default redirect to home
708
- × should handle absolute URLs and preserve the domain
709
- × should handle revalidation failure gracefully
710
- ✓ test/unit/nextjs/config.test.ts (9)
711
- ✓ test/unit/server/login.test.ts (6)
712
- ✓ test/unit/logger.test.ts (11)
713
- ✓ test/unit/services/AuthenticationService.test.ts (6)
714
- ✓ test/unit/nextjs/middleware.test.ts (7)
715
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
716
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
717
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
718
- ✓ test/unit/lib/oauth.test.ts (6)
719
- ✓ test/unit/shared/storage.test.ts (3)
720
- ✓ test/unit/server/session.test.ts (3)
721
- [?25l × should handle missing parameters
722
- ❯ with all parameters passed in (6)
723
- × should handle error when resolving the access code
724
- ❯ with code_verifier cookie present on request (2)
725
- × should do token exchange
726
- × should return empty html response
727
- ❯ with no code_verifier cookie present on request (3)
728
- ⠼ [ beforeAll ]
729
- ↓ should not do token exchange [skipped]
730
- ↓ in server token-exchange mode (1) [skipped]
731
- ↓ in client token-exchange mode (1) [skipped]
732
- ❯ Logout Handler (5)
733
- ✓ should clear auth cookies
734
- × should handle relative redirect paths
735
- × should handle default redirect to home
736
- × should handle absolute URLs and preserve the domain
737
- × should handle revalidation failure gracefully
738
- ✓ test/unit/nextjs/config.test.ts (9)
739
- ✓ test/unit/server/login.test.ts (6)
740
- ✓ test/unit/logger.test.ts (11)
741
- ✓ test/unit/services/AuthenticationService.test.ts (6)
742
- ✓ test/unit/nextjs/middleware.test.ts (7)
743
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
744
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
745
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
746
- ✓ test/unit/lib/oauth.test.ts (6)
747
- ✓ test/unit/shared/storage.test.ts (3)
748
- ✓ test/unit/server/session.test.ts (3)
749
- [?25l × should handle missing parameters
750
- ❯ with all parameters passed in (6)
751
- × should handle error when resolving the access code
752
- ❯ with code_verifier cookie present on request (2)
753
- × should do token exchange
754
- × should return empty html response
755
- ❯ with no code_verifier cookie present on request (3)
756
- ⠴ [ beforeAll ]
757
- ↓ should not do token exchange [skipped]
758
- ↓ in server token-exchange mode (1) [skipped]
759
- ↓ in client token-exchange mode (1) [skipped]
760
- ❯ Logout Handler (5)
761
- ✓ should clear auth cookies
762
- × should handle relative redirect paths
763
- × should handle default redirect to home
764
- × should handle absolute URLs and preserve the domain
765
- × should handle revalidation failure gracefully
766
- ✓ test/unit/nextjs/config.test.ts (9)
767
- ✓ test/unit/server/login.test.ts (6)
768
- ✓ test/unit/logger.test.ts (11)
769
- ✓ test/unit/services/AuthenticationService.test.ts (6)
770
- ✓ test/unit/nextjs/middleware.test.ts (7)
771
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
772
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
773
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
774
- ✓ test/unit/lib/oauth.test.ts (6)
775
- ✓ test/unit/shared/storage.test.ts (3)
776
- ✓ test/unit/server/session.test.ts (3)
777
- [?25l × should handle missing parameters
778
- ❯ with all parameters passed in (6)
779
- × should handle error when resolving the access code
780
- ❯ with code_verifier cookie present on request (2)
781
- × should do token exchange
782
- × should return empty html response
783
- ❯ with no code_verifier cookie present on request (3)
784
- ⠦ [ beforeAll ]
785
- ↓ should not do token exchange [skipped]
786
- ↓ in server token-exchange mode (1) [skipped]
787
- ↓ in client token-exchange mode (1) [skipped]
788
- ❯ Logout Handler (5)
789
- ✓ should clear auth cookies
790
- × should handle relative redirect paths
791
- × should handle default redirect to home
792
- × should handle absolute URLs and preserve the domain
793
- × should handle revalidation failure gracefully
794
- ✓ test/unit/nextjs/config.test.ts (9)
795
- ✓ test/unit/server/login.test.ts (6)
796
- ✓ test/unit/logger.test.ts (11)
797
- ✓ test/unit/services/AuthenticationService.test.ts (6)
798
- ✓ test/unit/nextjs/middleware.test.ts (7)
799
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
800
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
801
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
802
- ✓ test/unit/lib/oauth.test.ts (6)
803
- ✓ test/unit/shared/storage.test.ts (3)
804
- ✓ test/unit/server/session.test.ts (3)
805
- [?25l × should handle missing parameters
806
- ❯ with all parameters passed in (6)
807
- × should handle error when resolving the access code
808
- ❯ with code_verifier cookie present on request (2)
809
- × should do token exchange
810
- × should return empty html response
811
- ❯ with no code_verifier cookie present on request (3)
812
- ⠧ [ beforeAll ]
813
- ↓ should not do token exchange [skipped]
814
- ↓ in server token-exchange mode (1) [skipped]
815
- ↓ in client token-exchange mode (1) [skipped]
816
- ❯ Logout Handler (5)
817
- ✓ should clear auth cookies
818
- × should handle relative redirect paths
819
- × should handle default redirect to home
820
- × should handle absolute URLs and preserve the domain
821
- × should handle revalidation failure gracefully
822
- ✓ test/unit/nextjs/config.test.ts (9)
823
- ✓ test/unit/server/login.test.ts (6)
824
- ✓ test/unit/logger.test.ts (11)
825
- ✓ test/unit/services/AuthenticationService.test.ts (6)
826
- ✓ test/unit/nextjs/middleware.test.ts (7)
827
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
828
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
829
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
830
- ✓ test/unit/lib/oauth.test.ts (6)
831
- ✓ test/unit/shared/storage.test.ts (3)
832
- ✓ test/unit/server/session.test.ts (3)
833
- [?25l ❯ with all parameters passed in (6)
834
- × should handle error when resolving the access code
835
- ❯ with code_verifier cookie present on request (2)
836
- × should do token exchange
837
- × should return empty html response
838
- ❯ with no code_verifier cookie present on request (3)
839
- ⠇ [ beforeAll ]
840
- ↓ should not do token exchange [skipped]
841
- ↓ in server token-exchange mode (1) [skipped]
842
- ↓ in client token-exchange mode (1) [skipped]
843
- ❯ Logout Handler (5)
844
- ✓ should clear auth cookies
845
- × should handle relative redirect paths
846
- × should handle default redirect to home
847
- × should handle absolute URLs and preserve the domain
848
- × should handle revalidation failure gracefully
849
- · test/integration/sdk.test.tsx (2)
850
- ✓ test/unit/nextjs/config.test.ts (9)
851
- ✓ test/unit/server/login.test.ts (6)
852
- ✓ test/unit/logger.test.ts (11)
853
- ✓ test/unit/services/AuthenticationService.test.ts (6)
854
- ✓ test/unit/nextjs/middleware.test.ts (7)
855
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
856
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
857
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
858
- ✓ test/unit/lib/oauth.test.ts (6)
859
- ✓ test/unit/shared/storage.test.ts (3)
860
- ✓ test/unit/server/session.test.ts (3)
861
- [?25l ❯ with all parameters passed in (6)
862
- × should handle error when resolving the access code
863
- ❯ with code_verifier cookie present on request (2)
864
- × should do token exchange
865
- × should return empty html response
866
- ❯ with no code_verifier cookie present on request (3)
867
- ⠏ [ beforeAll ]
868
- ↓ should not do token exchange [skipped]
869
- ↓ in server token-exchange mode (1) [skipped]
870
- ↓ in client token-exchange mode (1) [skipped]
871
- ❯ Logout Handler (5)
872
- ✓ should clear auth cookies
873
- × should handle relative redirect paths
874
- × should handle default redirect to home
875
- × should handle absolute URLs and preserve the domain
876
- × should handle revalidation failure gracefully
877
- · test/integration/sdk.test.tsx (2)
878
- ✓ test/unit/nextjs/config.test.ts (9)
879
- ✓ test/unit/server/login.test.ts (6)
880
- ✓ test/unit/logger.test.ts (11)
881
- ✓ test/unit/services/AuthenticationService.test.ts (6)
882
- ✓ test/unit/nextjs/middleware.test.ts (7)
883
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
884
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
885
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
886
- ✓ test/unit/lib/oauth.test.ts (6)
887
- ✓ test/unit/shared/storage.test.ts (3)
888
- ✓ test/unit/server/session.test.ts (3)
889
- [?25l ❯ with all parameters passed in (6)
890
- × should handle error when resolving the access code
891
- ❯ with code_verifier cookie present on request (2)
892
- × should do token exchange
893
- × should return empty html response
894
- ❯ with no code_verifier cookie present on request (3)
895
- ⠋ [ beforeAll ]
896
- ↓ should not do token exchange [skipped]
897
- ↓ in server token-exchange mode (1) [skipped]
898
- ↓ in client token-exchange mode (1) [skipped]
899
- ❯ Logout Handler (5)
900
- ✓ should clear auth cookies
901
- × should handle relative redirect paths
902
- × should handle default redirect to home
903
- × should handle absolute URLs and preserve the domain
904
- × should handle revalidation failure gracefully
905
- · test/integration/sdk.test.tsx (2)
906
- ✓ test/unit/nextjs/config.test.ts (9)
907
- ✓ test/unit/server/login.test.ts (6)
908
- ✓ test/unit/logger.test.ts (11)
909
- ✓ test/unit/services/AuthenticationService.test.ts (6)
910
- ✓ test/unit/nextjs/middleware.test.ts (7)
911
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
912
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
913
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
914
- ✓ test/unit/lib/oauth.test.ts (6)
915
- ✓ test/unit/shared/storage.test.ts (3)
916
- ✓ test/unit/server/session.test.ts (3)
917
- stdout | test/integration/sdk.test.tsx > OAuth login > should set the correct auth url for login with redirect
918
- BrowserAuthenticationService constructor {
919
- config: {
920
- clientId: 'test-client-id',
921
- redirectUrl: 'http://localhost:3001/callback',
922
- oauthServer: 'http://localhost:3001',
923
- scopes: [
924
- 'openid',
925
- 'profile',
926
- 'email',
927
- 'forwardedTokens',
928
- 'offline_access'
929
- ],
930
- displayMode: 'iframe'
931
- }
932
- }
933
- BrowserAuthenticationInitiator constructor {
934
- clientId: 'test-client-id',
935
- redirectUrl: 'http://localhost:3001/callback',
936
- oauthServer: 'http://localhost:3001',
937
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
938
- displayMode: 'iframe',
939
- state: 'eyJ1dWlkIjoiM2IxNzUzZjMtYmNlNi00ODY2LWJkYjAtYjEyNDE1ZjM0MDU4IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
940
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
941
- }
942
- BrowserAuthenticationInitiator constructor {
943
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} },
944
- clientId: 'test-client-id',
945
- redirectUrl: 'http://localhost:3001/callback',
946
- state: 'eyJ1dWlkIjoiYTMzMmFmYTktNTdlZi00ZWY2LTgyODMtZDQ5ZjE0ODk0YjhhIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
947
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
948
- displayMode: 'redirect',
949
- oauthServer: 'http://localhost:3001',
950
- endpointOverrides: undefined,
951
- nonce: undefined
952
- }
953
- BrowserAuthenticationService constructor {
954
- config: {
955
- clientId: 'test-client-id',
956
- redirectUrl: 'http://localhost:3001/callback',
957
- oauthServer: 'http://localhost:3001',
958
- scopes: [
959
- 'openid',
960
- 'profile',
961
- 'email',
962
- 'forwardedTokens',
963
- 'offline_access'
964
- ],
965
- displayMode: 'redirect'
966
- }
967
- }
968
- BrowserAuthenticationInitiator constructor {
969
- clientId: 'test-client-id',
970
- redirectUrl: 'http://localhost:3001/callback',
971
- oauthServer: 'http://localhost:3001',
972
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
973
- displayMode: 'redirect',
974
- state: 'eyJ1dWlkIjoiZTQxYWY2OGYtZWZiMi00YzMxLWIyNTYtODdiOTJiZDkxMTMwIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
975
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
976
- }
977
- handleIframeLoad
978
-
979
- stdout | test/integration/sdk.test.tsx > OAuth login > should set the correct auth url for login with redirect
980
- Generated OAuth URL http://localhost:3001/oauth/auth?response_type=code&client_id=test-client-id&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Fcallback&scope=openid+profile+email&state=mock-state&code_challenge=mock-code-challenge&code_challenge_method=S256&code_challenge=qUmdgqlq8kCMG2ogmCQuKxBj7cLhzgSFoPB84-QwZM4&code_challenge_method=S256&prompt=consent
981
-
982
- [?25l × should do token exchange
983
- × should return empty html response
984
- ❯ with no code_verifier cookie present on request (3)
985
- ⠙ [ beforeAll ]
986
- ↓ should not do token exchange [skipped]
987
- ↓ in server token-exchange mode (1) [skipped]
988
- ↓ in client token-exchange mode (1) [skipped]
989
- ❯ Logout Handler (5)
990
- ✓ should clear auth cookies
991
- × should handle relative redirect paths
992
- × should handle default redirect to home
993
- × should handle absolute URLs and preserve the domain
994
- × should handle revalidation failure gracefully
995
- ❯ test/integration/sdk.test.tsx (2)
996
- ❯ OAuth login (2)
997
- ⠙ should set the correct auth url for login with redirect
998
- · should initiate code exchange, validate tokens, and derive user from ID token
999
- ✓ test/unit/nextjs/config.test.ts (9)
1000
- ✓ test/unit/server/login.test.ts (6)
1001
- ✓ test/unit/logger.test.ts (11)
1002
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1003
- ✓ test/unit/nextjs/middleware.test.ts (7)
1004
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1005
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1006
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1007
- ✓ test/unit/lib/oauth.test.ts (6)
1008
- ✓ test/unit/shared/storage.test.ts (3)
1009
- ✓ test/unit/server/session.test.ts (3)
1010
- stdout | test/integration/sdk.test.tsx > OAuth login > should initiate code exchange, validate tokens, and derive user from ID token
1011
- BrowserAuthenticationService constructor {
1012
- config: {
1013
- clientId: 'test-client-id',
1014
- redirectUrl: 'http://localhost:3001/callback',
1015
- oauthServer: 'http://localhost:3001',
1016
- scopes: [
1017
- 'openid',
1018
- 'profile',
1019
- 'email',
1020
- 'forwardedTokens',
1021
- 'offline_access'
1022
- ],
1023
- displayMode: 'iframe'
1024
- }
1025
- }
1026
- BrowserAuthenticationInitiator constructor {
1027
- clientId: 'test-client-id',
1028
- redirectUrl: 'http://localhost:3001/callback',
1029
- oauthServer: 'http://localhost:3001',
1030
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1031
- displayMode: 'iframe',
1032
- state: 'eyJ1dWlkIjoiZTVkN2YxNDEtMDI0Yy00MWJmLTg3YjMtNjQ4OTczYzBmY2I2IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1033
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1034
- }
1035
- handleIframeLoad
1036
-
1037
- stderr | test/integration/sdk.test.tsx > OAuth login > should initiate code exchange, validate tokens, and derive user from ID token
1038
- Failed to parse displayMode from state: mock-state DOMException [InvalidCharacterError]: Invalid character
1039
-  at atob (node:buffer:1294:13)
1040
- at Module.displayModeFromState (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/lib/oauth.ts:59:24)
1041
- at BrowserAuthenticationService.tokenExchange (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/services/AuthenticationService.ts:266:31)
1042
- at queryFn (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/AuthProvider.tsx:159:11)
1043
- window.history.replaceState failed DOMException {}
1044
-
1045
- [?25l × should return empty html response
1046
- ❯ with no code_verifier cookie present on request (3)
1047
- ⠹ [ beforeAll ]
1048
- ↓ should not do token exchange [skipped]
1049
- ↓ in server token-exchange mode (1) [skipped]
1050
- ↓ in client token-exchange mode (1) [skipped]
1051
- ❯ Logout Handler (5)
1052
- ✓ should clear auth cookies
1053
- × should handle relative redirect paths
1054
- × should handle default redirect to home
1055
- × should handle absolute URLs and preserve the domain
1056
- × should handle revalidation failure gracefully
1057
- ❯ test/integration/sdk.test.tsx (2)
1058
- ❯ OAuth login (2)
1059
- ✓ should set the correct auth url for login with redirect
1060
- ⠙ should initiate code exchange, validate tokens, and derive user from ID token
1061
- ✓ test/unit/nextjs/config.test.ts (9)
1062
- ✓ test/unit/server/login.test.ts (6)
1063
- ✓ test/unit/logger.test.ts (11)
1064
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1065
- ✓ test/unit/nextjs/middleware.test.ts (7)
1066
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1067
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1068
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1069
- ✓ test/unit/lib/oauth.test.ts (6)
1070
- ✓ test/unit/shared/storage.test.ts (3)
1071
- ✓ test/unit/server/session.test.ts (3)
1072
- · test/unit/utils.test.ts (4)
1073
- [?25l × should return empty html response
1074
- ❯ with no code_verifier cookie present on request (3)
1075
- ⠸ [ beforeAll ]
1076
- ↓ should not do token exchange [skipped]
1077
- ↓ in server token-exchange mode (1) [skipped]
1078
- ↓ in client token-exchange mode (1) [skipped]
1079
- ❯ Logout Handler (5)
1080
- ✓ should clear auth cookies
1081
- × should handle relative redirect paths
1082
- × should handle default redirect to home
1083
- × should handle absolute URLs and preserve the domain
1084
- × should handle revalidation failure gracefully
1085
- ❯ test/integration/sdk.test.tsx (2)
1086
- ❯ OAuth login (2)
1087
- ✓ should set the correct auth url for login with redirect
1088
- ⠹ should initiate code exchange, validate tokens, and derive user from ID token
1089
- ✓ test/unit/nextjs/config.test.ts (9)
1090
- ✓ test/unit/server/login.test.ts (6)
1091
- ✓ test/unit/logger.test.ts (11)
1092
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1093
- ✓ test/unit/nextjs/middleware.test.ts (7)
1094
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1095
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1096
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1097
- ✓ test/unit/lib/oauth.test.ts (6)
1098
- ✓ test/unit/shared/storage.test.ts (3)
1099
- ✓ test/unit/server/session.test.ts (3)
1100
- ✓ test/unit/utils.test.ts (4)
1101
- [?25l × should return empty html response
1102
- ❯ with no code_verifier cookie present on request (3)
1103
- ⠼ [ beforeAll ]
1104
- ↓ should not do token exchange [skipped]
1105
- ↓ in server token-exchange mode (1) [skipped]
1106
- ↓ in client token-exchange mode (1) [skipped]
1107
- ❯ Logout Handler (5)
1108
- ✓ should clear auth cookies
1109
- × should handle relative redirect paths
1110
- × should handle default redirect to home
1111
- × should handle absolute URLs and preserve the domain
1112
- × should handle revalidation failure gracefully
1113
- ❯ test/integration/sdk.test.tsx (2)
1114
- ❯ OAuth login (2)
1115
- ✓ should set the correct auth url for login with redirect
1116
- ⠸ should initiate code exchange, validate tokens, and derive user from ID token
1117
- ✓ test/unit/nextjs/config.test.ts (9)
1118
- ✓ test/unit/server/login.test.ts (6)
1119
- ✓ test/unit/logger.test.ts (11)
1120
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1121
- ✓ test/unit/nextjs/middleware.test.ts (7)
1122
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1123
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1124
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1125
- ✓ test/unit/lib/oauth.test.ts (6)
1126
- ✓ test/unit/shared/storage.test.ts (3)
1127
- ✓ test/unit/server/session.test.ts (3)
1128
- ✓ test/unit/utils.test.ts (4)
1129
- [?25l × should handle error when resolving the access code
1130
- ❯ with code_verifier cookie present on request (2)
1131
- × should do token exchange
1132
- × should return empty html response
1133
- ❯ with no code_verifier cookie present on request (3)
1134
- ⠴ [ beforeAll ]
1135
- ↓ should not do token exchange [skipped]
1136
- ↓ in server token-exchange mode (1) [skipped]
1137
- ↓ in client token-exchange mode (1) [skipped]
1138
- ❯ Logout Handler (5)
1139
- ✓ should clear auth cookies
1140
- × should handle relative redirect paths
1141
- × should handle default redirect to home
1142
- × should handle absolute URLs and preserve the domain
1143
- × should handle revalidation failure gracefully
1144
- ✓ test/integration/sdk.test.tsx (2)
1145
- ✓ test/unit/nextjs/config.test.ts (9)
1146
- ✓ test/unit/server/login.test.ts (6)
1147
- ✓ test/unit/logger.test.ts (11)
1148
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1149
- ✓ test/unit/nextjs/middleware.test.ts (7)
1150
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1151
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1152
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1153
- ✓ test/unit/lib/oauth.test.ts (6)
1154
- ✓ test/unit/shared/storage.test.ts (3)
1155
- ✓ test/unit/server/session.test.ts (3)
1156
- ✓ test/unit/utils.test.ts (4)
1157
- [?25l × should handle error when resolving the access code
1158
- ❯ with code_verifier cookie present on request (2)
1159
- × should do token exchange
1160
- × should return empty html response
1161
- ❯ with no code_verifier cookie present on request (3)
1162
- ⠦ [ beforeAll ]
1163
- ↓ should not do token exchange [skipped]
1164
- ↓ in server token-exchange mode (1) [skipped]
1165
- ↓ in client token-exchange mode (1) [skipped]
1166
- ❯ Logout Handler (5)
1167
- ✓ should clear auth cookies
1168
- × should handle relative redirect paths
1169
- × should handle default redirect to home
1170
- × should handle absolute URLs and preserve the domain
1171
- × should handle revalidation failure gracefully
1172
- ✓ test/integration/sdk.test.tsx (2)
1173
- ✓ test/unit/nextjs/config.test.ts (9)
1174
- ✓ test/unit/server/login.test.ts (6)
1175
- ✓ test/unit/logger.test.ts (11)
1176
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1177
- ✓ test/unit/nextjs/middleware.test.ts (7)
1178
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1179
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1180
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1181
- ✓ test/unit/lib/oauth.test.ts (6)
1182
- ✓ test/unit/shared/storage.test.ts (3)
1183
- ✓ test/unit/server/session.test.ts (3)
1184
- ✓ test/unit/utils.test.ts (4)
1185
- [?25l × should handle error when resolving the access code
1186
- ❯ with code_verifier cookie present on request (2)
1187
- × should do token exchange
1188
- × should return empty html response
1189
- ❯ with no code_verifier cookie present on request (3)
1190
- ⠧ [ beforeAll ]
1191
- ↓ should not do token exchange [skipped]
1192
- ↓ in server token-exchange mode (1) [skipped]
1193
- ↓ in client token-exchange mode (1) [skipped]
1194
- ❯ Logout Handler (5)
1195
- ✓ should clear auth cookies
1196
- × should handle relative redirect paths
1197
- × should handle default redirect to home
1198
- × should handle absolute URLs and preserve the domain
1199
- × should handle revalidation failure gracefully
1200
- ✓ test/integration/sdk.test.tsx (2)
1201
- ✓ test/unit/nextjs/config.test.ts (9)
1202
- ✓ test/unit/server/login.test.ts (6)
1203
- ✓ test/unit/logger.test.ts (11)
1204
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1205
- ✓ test/unit/nextjs/middleware.test.ts (7)
1206
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1207
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1208
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1209
- ✓ test/unit/lib/oauth.test.ts (6)
1210
- ✓ test/unit/shared/storage.test.ts (3)
1211
- ✓ test/unit/server/session.test.ts (3)
1212
- ✓ test/unit/utils.test.ts (4)
1213
- [?25l × should handle error when resolving the access code
1214
- ❯ with code_verifier cookie present on request (2)
1215
- × should do token exchange
1216
- × should return empty html response
1217
- ❯ with no code_verifier cookie present on request (3)
1218
- ⠇ [ beforeAll ]
1219
- ↓ should not do token exchange [skipped]
1220
- ↓ in server token-exchange mode (1) [skipped]
1221
- ↓ in client token-exchange mode (1) [skipped]
1222
- ❯ Logout Handler (5)
1223
- ✓ should clear auth cookies
1224
- × should handle relative redirect paths
1225
- × should handle default redirect to home
1226
- × should handle absolute URLs and preserve the domain
1227
- × should handle revalidation failure gracefully
1228
- ✓ test/integration/sdk.test.tsx (2)
1229
- ✓ test/unit/nextjs/config.test.ts (9)
1230
- ✓ test/unit/server/login.test.ts (6)
1231
- ✓ test/unit/logger.test.ts (11)
1232
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1233
- ✓ test/unit/nextjs/middleware.test.ts (7)
1234
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1235
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1236
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1237
- ✓ test/unit/lib/oauth.test.ts (6)
1238
- ✓ test/unit/shared/storage.test.ts (3)
1239
- ✓ test/unit/server/session.test.ts (3)
1240
- ✓ test/unit/utils.test.ts (4)
1241
- [?25l × should handle error when resolving the access code
1242
- ❯ with code_verifier cookie present on request (2)
1243
- × should do token exchange
1244
- × should return empty html response
1245
- ❯ with no code_verifier cookie present on request (3)
1246
- ⠏ [ beforeAll ]
1247
- ↓ should not do token exchange [skipped]
1248
- ↓ in server token-exchange mode (1) [skipped]
1249
- ↓ in client token-exchange mode (1) [skipped]
1250
- ❯ Logout Handler (5)
1251
- ✓ should clear auth cookies
1252
- × should handle relative redirect paths
1253
- × should handle default redirect to home
1254
- × should handle absolute URLs and preserve the domain
1255
- × should handle revalidation failure gracefully
1256
- ✓ test/integration/sdk.test.tsx (2)
1257
- ✓ test/unit/nextjs/config.test.ts (9)
1258
- ✓ test/unit/server/login.test.ts (6)
1259
- ✓ test/unit/logger.test.ts (11)
1260
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1261
- ✓ test/unit/nextjs/middleware.test.ts (7)
1262
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1263
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1264
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1265
- ✓ test/unit/lib/oauth.test.ts (6)
1266
- ✓ test/unit/shared/storage.test.ts (3)
1267
- ✓ test/unit/server/session.test.ts (3)
1268
- ✓ test/unit/utils.test.ts (4)
1269
- [?25l × should handle error when resolving the access code
1270
- ❯ with code_verifier cookie present on request (2)
1271
- × should do token exchange
1272
- × should return empty html response
1273
- ❯ with no code_verifier cookie present on request (3)
1274
- ⠋ [ beforeAll ]
1275
- ↓ should not do token exchange [skipped]
1276
- ↓ in server token-exchange mode (1) [skipped]
1277
- ↓ in client token-exchange mode (1) [skipped]
1278
- ❯ Logout Handler (5)
1279
- ✓ should clear auth cookies
1280
- × should handle relative redirect paths
1281
- × should handle default redirect to home
1282
- × should handle absolute URLs and preserve the domain
1283
- × should handle revalidation failure gracefully
1284
- ✓ test/integration/sdk.test.tsx (2)
1285
- ✓ test/unit/nextjs/config.test.ts (9)
1286
- ✓ test/unit/server/login.test.ts (6)
1287
- ✓ test/unit/logger.test.ts (11)
1288
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1289
- ✓ test/unit/nextjs/middleware.test.ts (7)
1290
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1291
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1292
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1293
- ✓ test/unit/lib/oauth.test.ts (6)
1294
- ✓ test/unit/shared/storage.test.ts (3)
1295
- ✓ test/unit/server/session.test.ts (3)
1296
- ✓ test/unit/utils.test.ts (4)
1297
- [?25l × should handle error when resolving the access code
1298
- ❯ with code_verifier cookie present on request (2)
1299
- × should do token exchange
1300
- × should return empty html response
1301
- ❯ with no code_verifier cookie present on request (3)
1302
- ⠙ [ beforeAll ]
1303
- ↓ should not do token exchange [skipped]
1304
- ↓ in server token-exchange mode (1) [skipped]
1305
- ↓ in client token-exchange mode (1) [skipped]
1306
- ❯ Logout Handler (5)
1307
- ✓ should clear auth cookies
1308
- × should handle relative redirect paths
1309
- × should handle default redirect to home
1310
- × should handle absolute URLs and preserve the domain
1311
- × should handle revalidation failure gracefully
1312
- ✓ test/integration/sdk.test.tsx (2)
1313
- ✓ test/unit/nextjs/config.test.ts (9)
1314
- ✓ test/unit/server/login.test.ts (6)
1315
- ✓ test/unit/logger.test.ts (11)
1316
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1317
- ✓ test/unit/nextjs/middleware.test.ts (7)
1318
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1319
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1320
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1321
- ✓ test/unit/lib/oauth.test.ts (6)
1322
- ✓ test/unit/shared/storage.test.ts (3)
1323
- ✓ test/unit/server/session.test.ts (3)
1324
- ✓ test/unit/utils.test.ts (4)
1325
- [?25l × should handle error when resolving the access code
1326
- ❯ with code_verifier cookie present on request (2)
1327
- × should do token exchange
1328
- × should return empty html response
1329
- ❯ with no code_verifier cookie present on request (3)
1330
- ⠹ [ beforeAll ]
1331
- ↓ should not do token exchange [skipped]
1332
- ↓ in server token-exchange mode (1) [skipped]
1333
- ↓ in client token-exchange mode (1) [skipped]
1334
- ❯ Logout Handler (5)
1335
- ✓ should clear auth cookies
1336
- × should handle relative redirect paths
1337
- × should handle default redirect to home
1338
- × should handle absolute URLs and preserve the domain
1339
- × should handle revalidation failure gracefully
1340
- ✓ test/integration/sdk.test.tsx (2)
1341
- ✓ test/unit/nextjs/config.test.ts (9)
1342
- ✓ test/unit/server/login.test.ts (6)
1343
- ✓ test/unit/logger.test.ts (11)
1344
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1345
- ✓ test/unit/nextjs/middleware.test.ts (7)
1346
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1347
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1348
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1349
- ✓ test/unit/lib/oauth.test.ts (6)
1350
- ✓ test/unit/shared/storage.test.ts (3)
1351
- ✓ test/unit/server/session.test.ts (3)
1352
- ✓ test/unit/utils.test.ts (4)
1353
- [?25l × should handle error when resolving the access code
1354
- ❯ with code_verifier cookie present on request (2)
1355
- × should do token exchange
1356
- × should return empty html response
1357
- ❯ with no code_verifier cookie present on request (3)
1358
- ⠸ [ beforeAll ]
1359
- ↓ should not do token exchange [skipped]
1360
- ↓ in server token-exchange mode (1) [skipped]
1361
- ↓ in client token-exchange mode (1) [skipped]
1362
- ❯ Logout Handler (5)
1363
- ✓ should clear auth cookies
1364
- × should handle relative redirect paths
1365
- × should handle default redirect to home
1366
- × should handle absolute URLs and preserve the domain
1367
- × should handle revalidation failure gracefully
1368
- ✓ test/integration/sdk.test.tsx (2)
1369
- ✓ test/unit/nextjs/config.test.ts (9)
1370
- ✓ test/unit/server/login.test.ts (6)
1371
- ✓ test/unit/logger.test.ts (11)
1372
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1373
- ✓ test/unit/nextjs/middleware.test.ts (7)
1374
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1375
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1376
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1377
- ✓ test/unit/lib/oauth.test.ts (6)
1378
- ✓ test/unit/shared/storage.test.ts (3)
1379
- ✓ test/unit/server/session.test.ts (3)
1380
- ✓ test/unit/utils.test.ts (4)
1381
- [?25l × should handle error when resolving the access code
1382
- ❯ with code_verifier cookie present on request (2)
1383
- × should do token exchange
1384
- × should return empty html response
1385
- ❯ with no code_verifier cookie present on request (3)
1386
- ⠼ [ beforeAll ]
1387
- ↓ should not do token exchange [skipped]
1388
- ↓ in server token-exchange mode (1) [skipped]
1389
- ↓ in client token-exchange mode (1) [skipped]
1390
- ❯ Logout Handler (5)
1391
- ✓ should clear auth cookies
1392
- × should handle relative redirect paths
1393
- × should handle default redirect to home
1394
- × should handle absolute URLs and preserve the domain
1395
- × should handle revalidation failure gracefully
1396
- ✓ test/integration/sdk.test.tsx (2)
1397
- ✓ test/unit/nextjs/config.test.ts (9)
1398
- ✓ test/unit/server/login.test.ts (6)
1399
- ✓ test/unit/logger.test.ts (11)
1400
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1401
- ✓ test/unit/nextjs/middleware.test.ts (7)
1402
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1403
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1404
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1405
- ✓ test/unit/lib/oauth.test.ts (6)
1406
- ✓ test/unit/shared/storage.test.ts (3)
1407
- ✓ test/unit/server/session.test.ts (3)
1408
- ✓ test/unit/utils.test.ts (4)
1409
- [?25l × should handle error when resolving the access code
1410
- ❯ with code_verifier cookie present on request (2)
1411
- × should do token exchange
1412
- × should return empty html response
1413
- ❯ with no code_verifier cookie present on request (3)
1414
- ⠴ [ beforeAll ]
1415
- ↓ should not do token exchange [skipped]
1416
- ↓ in server token-exchange mode (1) [skipped]
1417
- ↓ in client token-exchange mode (1) [skipped]
1418
- ❯ Logout Handler (5)
1419
- ✓ should clear auth cookies
1420
- × should handle relative redirect paths
1421
- × should handle default redirect to home
1422
- × should handle absolute URLs and preserve the domain
1423
- × should handle revalidation failure gracefully
1424
- ✓ test/integration/sdk.test.tsx (2)
1425
- ✓ test/unit/nextjs/config.test.ts (9)
1426
- ✓ test/unit/server/login.test.ts (6)
1427
- ✓ test/unit/logger.test.ts (11)
1428
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1429
- ✓ test/unit/nextjs/middleware.test.ts (7)
1430
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1431
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1432
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1433
- ✓ test/unit/lib/oauth.test.ts (6)
1434
- ✓ test/unit/shared/storage.test.ts (3)
1435
- ✓ test/unit/server/session.test.ts (3)
1436
- ✓ test/unit/utils.test.ts (4)
1437
- [?25l × should handle error when resolving the access code
1438
- ❯ with code_verifier cookie present on request (2)
1439
- × should do token exchange
1440
- × should return empty html response
1441
- ❯ with no code_verifier cookie present on request (3)
1442
- ⠦ [ beforeAll ]
1443
- ↓ should not do token exchange [skipped]
1444
- ↓ in server token-exchange mode (1) [skipped]
1445
- ↓ in client token-exchange mode (1) [skipped]
1446
- ❯ Logout Handler (5)
1447
- ✓ should clear auth cookies
1448
- × should handle relative redirect paths
1449
- × should handle default redirect to home
1450
- × should handle absolute URLs and preserve the domain
1451
- × should handle revalidation failure gracefully
1452
- ✓ test/integration/sdk.test.tsx (2)
1453
- ✓ test/unit/nextjs/config.test.ts (9)
1454
- ✓ test/unit/server/login.test.ts (6)
1455
- ✓ test/unit/logger.test.ts (11)
1456
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1457
- ✓ test/unit/nextjs/middleware.test.ts (7)
1458
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1459
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1460
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1461
- ✓ test/unit/lib/oauth.test.ts (6)
1462
- ✓ test/unit/shared/storage.test.ts (3)
1463
- ✓ test/unit/server/session.test.ts (3)
1464
- ✓ test/unit/utils.test.ts (4)
1465
- [?25l × should handle error when resolving the access code
1466
- ❯ with code_verifier cookie present on request (2)
1467
- × should do token exchange
1468
- × should return empty html response
1469
- ❯ with no code_verifier cookie present on request (3)
1470
- ⠧ [ beforeAll ]
1471
- ↓ should not do token exchange [skipped]
1472
- ↓ in server token-exchange mode (1) [skipped]
1473
- ↓ in client token-exchange mode (1) [skipped]
1474
- ❯ Logout Handler (5)
1475
- ✓ should clear auth cookies
1476
- × should handle relative redirect paths
1477
- × should handle default redirect to home
1478
- × should handle absolute URLs and preserve the domain
1479
- × should handle revalidation failure gracefully
1480
- ✓ test/integration/sdk.test.tsx (2)
1481
- ✓ test/unit/nextjs/config.test.ts (9)
1482
- ✓ test/unit/server/login.test.ts (6)
1483
- ✓ test/unit/logger.test.ts (11)
1484
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1485
- ✓ test/unit/nextjs/middleware.test.ts (7)
1486
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1487
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1488
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1489
- ✓ test/unit/lib/oauth.test.ts (6)
1490
- ✓ test/unit/shared/storage.test.ts (3)
1491
- ✓ test/unit/server/session.test.ts (3)
1492
- ✓ test/unit/utils.test.ts (4)
1493
- [?25l × should handle error when resolving the access code
1494
- ❯ with code_verifier cookie present on request (2)
1495
- × should do token exchange
1496
- × should return empty html response
1497
- ❯ with no code_verifier cookie present on request (3)
1498
- ⠇ [ beforeAll ]
1499
- ↓ should not do token exchange [skipped]
1500
- ↓ in server token-exchange mode (1) [skipped]
1501
- ↓ in client token-exchange mode (1) [skipped]
1502
- ❯ Logout Handler (5)
1503
- ✓ should clear auth cookies
1504
- × should handle relative redirect paths
1505
- × should handle default redirect to home
1506
- × should handle absolute URLs and preserve the domain
1507
- × should handle revalidation failure gracefully
1508
- ✓ test/integration/sdk.test.tsx (2)
1509
- ✓ test/unit/nextjs/config.test.ts (9)
1510
- ✓ test/unit/server/login.test.ts (6)
1511
- ✓ test/unit/logger.test.ts (11)
1512
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1513
- ✓ test/unit/nextjs/middleware.test.ts (7)
1514
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1515
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1516
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1517
- ✓ test/unit/lib/oauth.test.ts (6)
1518
- ✓ test/unit/shared/storage.test.ts (3)
1519
- ✓ test/unit/server/session.test.ts (3)
1520
- ✓ test/unit/utils.test.ts (4)
1521
- [?25l × should do token exchange
1522
- × should return empty html response
1523
- ❯ with no code_verifier cookie present on request (3)
1524
- ⠏ [ beforeAll ]
1525
- ↓ should not do token exchange [skipped]
1526
- ↓ in server token-exchange mode (1) [skipped]
1527
- ↓ in client token-exchange mode (1) [skipped]
1528
- ❯ Logout Handler (5)
1529
- ✓ should clear auth cookies
1530
- × should handle relative redirect paths
1531
- × should handle default redirect to home
1532
- × should handle absolute URLs and preserve the domain
1533
- × should handle revalidation failure gracefully
1534
- ✓ test/integration/sdk.test.tsx (2)
1535
- ✓ test/unit/nextjs/config.test.ts (9)
1536
- ✓ test/unit/server/login.test.ts (6)
1537
- ✓ test/unit/logger.test.ts (11)
1538
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1539
- ✓ test/unit/nextjs/middleware.test.ts (7)
1540
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1541
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1542
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1543
- ✓ test/unit/lib/oauth.test.ts (6)
1544
- ✓ test/unit/shared/storage.test.ts (3)
1545
- ✓ test/unit/server/session.test.ts (3)
1546
- ✓ test/unit/utils.test.ts (4)
1547
- · test/unit/shared/UserSession.test.ts (2)
1548
- · test/unit/nextjs/utils.test.ts (2)
1549
- [?25l × should do token exchange
1550
- × should return empty html response
1551
- ❯ with no code_verifier cookie present on request (3)
1552
- ⠋ [ beforeAll ]
1553
- ↓ should not do token exchange [skipped]
1554
- ↓ in server token-exchange mode (1) [skipped]
1555
- ↓ in client token-exchange mode (1) [skipped]
1556
- ❯ Logout Handler (5)
1557
- ✓ should clear auth cookies
1558
- × should handle relative redirect paths
1559
- × should handle default redirect to home
1560
- × should handle absolute URLs and preserve the domain
1561
- × should handle revalidation failure gracefully
1562
- ✓ test/integration/sdk.test.tsx (2)
1563
- ✓ test/unit/nextjs/config.test.ts (9)
1564
- ✓ test/unit/server/login.test.ts (6)
1565
- ✓ test/unit/logger.test.ts (11)
1566
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1567
- ✓ test/unit/nextjs/middleware.test.ts (7)
1568
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1569
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1570
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1571
- ✓ test/unit/lib/oauth.test.ts (6)
1572
- ✓ test/unit/shared/storage.test.ts (3)
1573
- ✓ test/unit/server/session.test.ts (3)
1574
- ✓ test/unit/utils.test.ts (4)
1575
- ✓ test/unit/shared/UserSession.test.ts (2)
1576
- ✓ test/unit/nextjs/utils.test.ts (2)
1577
- [?25l × should do token exchange
1578
- × should return empty html response
1579
- ❯ with no code_verifier cookie present on request (3)
1580
- ⠙ [ beforeAll ]
1581
- ↓ should not do token exchange [skipped]
1582
- ↓ in server token-exchange mode (1) [skipped]
1583
- ↓ in client token-exchange mode (1) [skipped]
1584
- ❯ Logout Handler (5)
1585
- ✓ should clear auth cookies
1586
- × should handle relative redirect paths
1587
- × should handle default redirect to home
1588
- × should handle absolute URLs and preserve the domain
1589
- × should handle revalidation failure gracefully
1590
- ✓ test/integration/sdk.test.tsx (2)
1591
- ✓ test/unit/nextjs/config.test.ts (9)
1592
- ✓ test/unit/server/login.test.ts (6)
1593
- ✓ test/unit/logger.test.ts (11)
1594
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1595
- ✓ test/unit/nextjs/middleware.test.ts (7)
1596
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1597
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1598
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1599
- ✓ test/unit/lib/oauth.test.ts (6)
1600
- ✓ test/unit/shared/storage.test.ts (3)
1601
- ✓ test/unit/server/session.test.ts (3)
1602
- ✓ test/unit/utils.test.ts (4)
1603
- ✓ test/unit/shared/UserSession.test.ts (2)
1604
- ✓ test/unit/nextjs/utils.test.ts (2)
1605
- [?25l × should do token exchange
1606
- × should return empty html response
1607
- ❯ with no code_verifier cookie present on request (3)
1608
- ⠹ [ beforeAll ]
1609
- ↓ should not do token exchange [skipped]
1610
- ↓ in server token-exchange mode (1) [skipped]
1611
- ↓ in client token-exchange mode (1) [skipped]
1612
- ❯ Logout Handler (5)
1613
- ✓ should clear auth cookies
1614
- × should handle relative redirect paths
1615
- × should handle default redirect to home
1616
- × should handle absolute URLs and preserve the domain
1617
- × should handle revalidation failure gracefully
1618
- ✓ test/integration/sdk.test.tsx (2)
1619
- ✓ test/unit/nextjs/config.test.ts (9)
1620
- ✓ test/unit/server/login.test.ts (6)
1621
- ✓ test/unit/logger.test.ts (11)
1622
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1623
- ✓ test/unit/nextjs/middleware.test.ts (7)
1624
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1625
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1626
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1627
- ✓ test/unit/lib/oauth.test.ts (6)
1628
- ✓ test/unit/shared/storage.test.ts (3)
1629
- ✓ test/unit/server/session.test.ts (3)
1630
- ✓ test/unit/utils.test.ts (4)
1631
- ✓ test/unit/shared/UserSession.test.ts (2)
1632
- ✓ test/unit/nextjs/utils.test.ts (2)
1633
- [?25l × should do token exchange
1634
- × should return empty html response
1635
- ❯ with no code_verifier cookie present on request (3)
1636
- ⠸ [ beforeAll ]
1637
- ↓ should not do token exchange [skipped]
1638
- ↓ in server token-exchange mode (1) [skipped]
1639
- ↓ in client token-exchange mode (1) [skipped]
1640
- ❯ Logout Handler (5)
1641
- ✓ should clear auth cookies
1642
- × should handle relative redirect paths
1643
- × should handle default redirect to home
1644
- × should handle absolute URLs and preserve the domain
1645
- × should handle revalidation failure gracefully
1646
- ✓ test/integration/sdk.test.tsx (2)
1647
- ✓ test/unit/nextjs/config.test.ts (9)
1648
- ✓ test/unit/server/login.test.ts (6)
1649
- ✓ test/unit/logger.test.ts (11)
1650
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1651
- ✓ test/unit/nextjs/middleware.test.ts (7)
1652
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1653
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1654
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1655
- ✓ test/unit/lib/oauth.test.ts (6)
1656
- ✓ test/unit/shared/storage.test.ts (3)
1657
- ✓ test/unit/server/session.test.ts (3)
1658
- ✓ test/unit/utils.test.ts (4)
1659
- ✓ test/unit/shared/UserSession.test.ts (2)
1660
- ✓ test/unit/nextjs/utils.test.ts (2)
1661
- [?25l × should return empty html response
1662
- ❯ with no code_verifier cookie present on request (3)
1663
- ⠼ [ beforeAll ]
1664
- ↓ should not do token exchange [skipped]
1665
- ↓ in server token-exchange mode (1) [skipped]
1666
- ↓ in client token-exchange mode (1) [skipped]
1667
- ❯ Logout Handler (5)
1668
- ✓ should clear auth cookies
1669
- × should handle relative redirect paths
1670
- × should handle default redirect to home
1671
- × should handle absolute URLs and preserve the domain
1672
- × should handle revalidation failure gracefully
1673
- ✓ test/integration/sdk.test.tsx (2)
1674
- ✓ test/unit/nextjs/config.test.ts (9)
1675
- ✓ test/unit/server/login.test.ts (6)
1676
- ✓ test/unit/logger.test.ts (11)
1677
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1678
- ✓ test/unit/nextjs/middleware.test.ts (7)
1679
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1680
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1681
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1682
- ✓ test/unit/lib/oauth.test.ts (6)
1683
- ✓ test/unit/shared/storage.test.ts (3)
1684
- ✓ test/unit/server/session.test.ts (3)
1685
- ✓ test/unit/utils.test.ts (4)
1686
- · test/unit/react/components/SignInButton.test.tsx (2)
1687
- ✓ test/unit/shared/UserSession.test.ts (2)
1688
- ✓ test/unit/nextjs/utils.test.ts (2)
1689
- [?25l × should return empty html response
1690
- ❯ with no code_verifier cookie present on request (3)
1691
- ⠴ [ beforeAll ]
1692
- ↓ should not do token exchange [skipped]
1693
- ↓ in server token-exchange mode (1) [skipped]
1694
- ↓ in client token-exchange mode (1) [skipped]
1695
- ❯ Logout Handler (5)
1696
- ✓ should clear auth cookies
1697
- × should handle relative redirect paths
1698
- × should handle default redirect to home
1699
- × should handle absolute URLs and preserve the domain
1700
- × should handle revalidation failure gracefully
1701
- ✓ test/integration/sdk.test.tsx (2)
1702
- ✓ test/unit/nextjs/config.test.ts (9)
1703
- ✓ test/unit/server/login.test.ts (6)
1704
- ✓ test/unit/logger.test.ts (11)
1705
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1706
- ✓ test/unit/nextjs/middleware.test.ts (7)
1707
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1708
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1709
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1710
- ✓ test/unit/lib/oauth.test.ts (6)
1711
- ✓ test/unit/shared/storage.test.ts (3)
1712
- ✓ test/unit/server/session.test.ts (3)
1713
- ✓ test/unit/utils.test.ts (4)
1714
- · test/unit/react/components/SignInButton.test.tsx (2)
1715
- ✓ test/unit/shared/UserSession.test.ts (2)
1716
- ✓ test/unit/nextjs/utils.test.ts (2)
1717
- [?25l ⠦ [ beforeAll ]
1718
- ↓ should not do token exchange [skipped]
1719
- ↓ in server token-exchange mode (1) [skipped]
1720
- ↓ in client token-exchange mode (1) [skipped]
1721
- ❯ Logout Handler (5)
1722
- ✓ should clear auth cookies
1723
- × should handle relative redirect paths
1724
- × should handle default redirect to home
1725
- × should handle absolute URLs and preserve the domain
1726
- × should handle revalidation failure gracefully
1727
- ✓ test/integration/sdk.test.tsx (2)
1728
- ✓ test/unit/nextjs/config.test.ts (9)
1729
- ✓ test/unit/server/login.test.ts (6)
1730
- ✓ test/unit/logger.test.ts (11)
1731
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1732
- ✓ test/unit/nextjs/middleware.test.ts (7)
1733
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1734
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1735
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1736
- ✓ test/unit/lib/oauth.test.ts (6)
1737
- ✓ test/unit/shared/storage.test.ts (3)
1738
- ✓ test/unit/server/session.test.ts (3)
1739
- ✓ test/unit/utils.test.ts (4)
1740
- · test/unit/react/components/SignInButton.test.tsx (2)
1741
- · test/unit/react/components/SignOutButton.test.tsx (2)
1742
- · test/unit/nextjs/getUser.test.ts (1)
1743
- ✓ test/unit/shared/UserSession.test.ts (2)
1744
- ✓ test/unit/nextjs/utils.test.ts (2)
1745
- [?25l ⠧ [ beforeAll ]
1746
- ↓ should not do token exchange [skipped]
1747
- ↓ in server token-exchange mode (1) [skipped]
1748
- ↓ in client token-exchange mode (1) [skipped]
1749
- ❯ Logout Handler (5)
1750
- ✓ should clear auth cookies
1751
- × should handle relative redirect paths
1752
- × should handle default redirect to home
1753
- × should handle absolute URLs and preserve the domain
1754
- × should handle revalidation failure gracefully
1755
- ✓ test/integration/sdk.test.tsx (2)
1756
- ✓ test/unit/nextjs/config.test.ts (9)
1757
- ✓ test/unit/server/login.test.ts (6)
1758
- ✓ test/unit/logger.test.ts (11)
1759
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1760
- ✓ test/unit/nextjs/middleware.test.ts (7)
1761
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1762
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1763
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1764
- ✓ test/unit/lib/oauth.test.ts (6)
1765
- ✓ test/unit/shared/storage.test.ts (3)
1766
- ✓ test/unit/server/session.test.ts (3)
1767
- ✓ test/unit/utils.test.ts (4)
1768
- · test/unit/react/components/SignInButton.test.tsx (2)
1769
- · test/unit/react/components/SignOutButton.test.tsx (2)
1770
- · test/unit/nextjs/getUser.test.ts (1)
1771
- ✓ test/unit/shared/UserSession.test.ts (2)
1772
- ✓ test/unit/nextjs/utils.test.ts (2)
1773
- [?25l ↓ should not do token exchange [skipped]
1774
- ↓ in server token-exchange mode (1) [skipped]
1775
- ↓ in client token-exchange mode (1) [skipped]
1776
- ❯ Logout Handler (5)
1777
- ✓ should clear auth cookies
1778
- × should handle relative redirect paths
1779
- × should handle default redirect to home
1780
- × should handle absolute URLs and preserve the domain
1781
- × should handle revalidation failure gracefully
1782
- ✓ test/integration/sdk.test.tsx (2)
1783
- ✓ test/unit/nextjs/config.test.ts (9)
1784
- ✓ test/unit/server/login.test.ts (6)
1785
- ✓ test/unit/logger.test.ts (11)
1786
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1787
- ✓ test/unit/nextjs/middleware.test.ts (7)
1788
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1789
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1790
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1791
- ✓ test/unit/lib/oauth.test.ts (6)
1792
- ✓ test/unit/shared/storage.test.ts (3)
1793
- ✓ test/unit/server/session.test.ts (3)
1794
- ✓ test/unit/utils.test.ts (4)
1795
- · test/unit/react/components/SignInButton.test.tsx (2)
1796
- · test/unit/react/components/SignOutButton.test.tsx (2)
1797
- ✓ test/unit/nextjs/getUser.test.ts (1)
1798
- ✓ test/unit/shared/UserSession.test.ts (2)
1799
- ✓ test/unit/nextjs/utils.test.ts (2)
1800
- · test/unit/publicApi/apiSnapshot.test.ts (1)
1801
- stdout | test/unit/react/components/SignInButton.test.tsx > SignInButton Component > should render a SignInButton component
1802
- BrowserAuthenticationService constructor {
1803
- config: {
1804
- clientId: 'test-client-id',
1805
- redirectUrl: 'https://example.com',
1806
- oauthServer: 'https://auth.civic.com/oauth',
1807
- scopes: [
1808
- 'openid',
1809
- 'profile',
1810
- 'email',
1811
- 'forwardedTokens',
1812
- 'offline_access'
1813
- ],
1814
- displayMode: 'iframe'
1815
- }
1816
- }
1817
- BrowserAuthenticationInitiator constructor {
1818
- clientId: 'test-client-id',
1819
- redirectUrl: 'https://example.com',
1820
- oauthServer: 'https://auth.civic.com/oauth',
1821
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1822
- displayMode: 'iframe',
1823
- state: 'eyJ1dWlkIjoiMWM5ZTdlOWMtMDA2OS00N2FiLWJlYzQtMzczMWNlZmJmMzAyIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1824
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1825
- }
1826
- handleIframeLoad
1827
-
1828
- [?25l ↓ in server token-exchange mode (1) [skipped]
1829
- ↓ in client token-exchange mode (1) [skipped]
1830
- ❯ Logout Handler (5)
1831
- ✓ should clear auth cookies
1832
- × should handle relative redirect paths
1833
- × should handle default redirect to home
1834
- × should handle absolute URLs and preserve the domain
1835
- × should handle revalidation failure gracefully
1836
- ✓ test/integration/sdk.test.tsx (2)
1837
- ✓ test/unit/nextjs/config.test.ts (9)
1838
- ✓ test/unit/server/login.test.ts (6)
1839
- ✓ test/unit/logger.test.ts (11)
1840
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1841
- ✓ test/unit/nextjs/middleware.test.ts (7)
1842
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1843
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1844
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1845
- ✓ test/unit/lib/oauth.test.ts (6)
1846
- ✓ test/unit/shared/storage.test.ts (3)
1847
- ✓ test/unit/server/session.test.ts (3)
1848
- ✓ test/unit/utils.test.ts (4)
1849
- · test/unit/react/components/SignInButton.test.tsx (2)
1850
- · test/unit/react/components/SignOutButton.test.tsx (2)
1851
- ✓ test/unit/nextjs/getUser.test.ts (1)
1852
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
1853
- ✓ test/unit/shared/UserSession.test.ts (2)
1854
- ✓ test/unit/nextjs/utils.test.ts (2)
1855
- · test/unit/publicApi/apiSnapshot.test.ts (1)
1856
- stderr | test/unit/react/components/SignInButton.test.tsx > SignInButton Component > should render a SignInButton component
1857
- Warning: An update to CivicAuthIframeContainer inside a test was not wrapped in act(...).
1858
-
1859
- When testing, code that causes React state updates should be wrapped into act(...):
1860
-
1861
- act(() => {
1862
- /* fire events that update state */
1863
- });
1864
- /* assert on the output */
1865
-
1866
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
1867
- at CivicAuthIframeContainer (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/components/CivicAuthIframeContainer.tsx:48:3)
1868
- at div
1869
- at TokenProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/TokenProvider.tsx:15:26)
1870
- at SessionProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/SessionProvider.tsx:11:28)
1871
- at IframeProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/IframeProvider.tsx:11:3)
1872
- at ConfigProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/ConfigProvider.tsx:14:3)
1873
- at AuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/AuthProvider.tsx:53:3)
1874
- at QueryClientProvider (file:///Users/flippie/civic/repos/civic-auth/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
1875
- at CivicAuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/CivicAuthProvider.tsx:15:30)
1876
-
1877
- stdout | test/unit/react/components/SignInButton.test.tsx > SignInButton Component > should call signIn when the button is clicked
1878
- BrowserAuthenticationService constructor {
1879
- config: {
1880
- clientId: 'test-client-id',
1881
- redirectUrl: 'https://example.com',
1882
- oauthServer: 'https://auth.civic.com/oauth',
1883
- scopes: [
1884
- 'openid',
1885
- 'profile',
1886
- 'email',
1887
- 'forwardedTokens',
1888
- 'offline_access'
1889
- ],
1890
- displayMode: 'iframe'
1891
- }
1892
- }
1893
- BrowserAuthenticationInitiator constructor {
1894
- clientId: 'test-client-id',
1895
- redirectUrl: 'https://example.com',
1896
- oauthServer: 'https://auth.civic.com/oauth',
1897
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1898
- displayMode: 'iframe',
1899
- state: 'eyJ1dWlkIjoiODk0NjZmOWYtNjI4Mi00OWU4LWE0YmQtY2NiNzM2N2RmYmQ3IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1900
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1901
- }
1902
- handleIframeLoad
1903
-
1904
- stderr | test/unit/react/components/SignInButton.test.tsx > SignInButton Component > should call signIn when the button is clicked
1905
- Warning: An update to CivicAuthIframeContainer inside a test was not wrapped in act(...).
1906
-
1907
- When testing, code that causes React state updates should be wrapped into act(...):
1908
-
1909
- act(() => {
1910
- /* fire events that update state */
1911
- });
1912
- /* assert on the output */
1913
-
1914
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
1915
- at CivicAuthIframeContainer (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/components/CivicAuthIframeContainer.tsx:48:3)
1916
- at div
1917
- at TokenProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/TokenProvider.tsx:15:26)
1918
- at SessionProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/SessionProvider.tsx:11:28)
1919
- at IframeProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/IframeProvider.tsx:11:3)
1920
- at ConfigProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/ConfigProvider.tsx:14:3)
1921
- at AuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/AuthProvider.tsx:53:3)
1922
- at QueryClientProvider (file:///Users/flippie/civic/repos/civic-auth/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
1923
- at CivicAuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/CivicAuthProvider.tsx:15:30)
1924
-
1925
- stdout | test/unit/react/components/SignOutButton.test.tsx > SignOutButton Component > should render a SignOutButton component
1926
- BrowserAuthenticationService constructor {
1927
- config: {
1928
- clientId: 'test-client-id',
1929
- redirectUrl: 'https://example.com',
1930
- oauthServer: 'https://auth.civic.com/oauth',
1931
- scopes: [
1932
- 'openid',
1933
- 'profile',
1934
- 'email',
1935
- 'forwardedTokens',
1936
- 'offline_access'
1937
- ],
1938
- displayMode: 'iframe'
1939
- }
1940
- }
1941
- BrowserAuthenticationInitiator constructor {
1942
- clientId: 'test-client-id',
1943
- redirectUrl: 'https://example.com',
1944
- oauthServer: 'https://auth.civic.com/oauth',
1945
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1946
- displayMode: 'iframe',
1947
- state: 'eyJ1dWlkIjoiZWUzYWRhMzgtZjVjZS00NjUxLTliYmQtYjdlYWNjNzQwZDUzIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1948
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1949
- }
1950
- handleIframeLoad
1951
-
1952
- stderr | test/unit/react/components/SignOutButton.test.tsx > SignOutButton Component > should render a SignOutButton component
1953
- Warning: An update to CivicAuthIframeContainer inside a test was not wrapped in act(...).
1954
-
1955
- When testing, code that causes React state updates should be wrapped into act(...):
1956
-
1957
- act(() => {
1958
- /* fire events that update state */
1959
- });
1960
- /* assert on the output */
1961
-
1962
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
1963
- at CivicAuthIframeContainer (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/components/CivicAuthIframeContainer.tsx:48:3)
1964
- at div
1965
- at TokenProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/TokenProvider.tsx:15:26)
1966
- at SessionProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/SessionProvider.tsx:11:28)
1967
- at IframeProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/IframeProvider.tsx:11:3)
1968
- at ConfigProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/ConfigProvider.tsx:14:3)
1969
- at AuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/AuthProvider.tsx:53:3)
1970
- at QueryClientProvider (file:///Users/flippie/civic/repos/civic-auth/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
1971
- at CivicAuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/CivicAuthProvider.tsx:15:30)
1972
-
1973
- stdout | test/unit/react/components/SignOutButton.test.tsx > SignOutButton Component > should call signIn when the button is clicked
1974
- BrowserAuthenticationService constructor {
1975
- config: {
1976
- clientId: 'test-client-id',
1977
- redirectUrl: 'https://example.com',
1978
- oauthServer: 'https://auth.civic.com/oauth',
1979
- scopes: [
1980
- 'openid',
1981
- 'profile',
1982
- 'email',
1983
- 'forwardedTokens',
1984
- 'offline_access'
1985
- ],
1986
- displayMode: 'iframe'
1987
- }
1988
- }
1989
- BrowserAuthenticationInitiator constructor {
1990
- clientId: 'test-client-id',
1991
- redirectUrl: 'https://example.com',
1992
- oauthServer: 'https://auth.civic.com/oauth',
1993
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1994
- displayMode: 'iframe',
1995
- state: 'eyJ1dWlkIjoiZWZiZDViYmItNjgyMC00NTE2LWIzMTgtYTQ5MzM2MWM4ZjQ3IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1996
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1997
- }
1998
- handleIframeLoad
1999
-
2000
- stderr | test/unit/react/components/SignOutButton.test.tsx > SignOutButton Component > should call signIn when the button is clicked
2001
- Warning: An update to CivicAuthIframeContainer inside a test was not wrapped in act(...).
2002
-
2003
- When testing, code that causes React state updates should be wrapped into act(...):
2004
-
2005
- act(() => {
2006
- /* fire events that update state */
2007
- });
2008
- /* assert on the output */
2009
-
2010
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
2011
- at CivicAuthIframeContainer (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/components/CivicAuthIframeContainer.tsx:48:3)
2012
- at div
2013
- at TokenProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/TokenProvider.tsx:15:26)
2014
- at SessionProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/SessionProvider.tsx:11:28)
2015
- at IframeProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/IframeProvider.tsx:11:3)
2016
- at ConfigProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/ConfigProvider.tsx:14:3)
2017
- at AuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/AuthProvider.tsx:53:3)
2018
- at QueryClientProvider (file:///Users/flippie/civic/repos/civic-auth/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
2019
- at CivicAuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/CivicAuthProvider.tsx:15:30)
2020
-
2021
- [?25l ↓ in server token-exchange mode (1) [skipped]
2022
- ↓ in client token-exchange mode (1) [skipped]
2023
- ❯ Logout Handler (5)
2024
- ✓ should clear auth cookies
2025
- × should handle relative redirect paths
2026
- × should handle default redirect to home
2027
- × should handle absolute URLs and preserve the domain
2028
- × should handle revalidation failure gracefully
2029
- ✓ test/integration/sdk.test.tsx (2)
2030
- ✓ test/unit/nextjs/config.test.ts (9)
2031
- ✓ test/unit/server/login.test.ts (6)
2032
- ✓ test/unit/logger.test.ts (11)
2033
- ✓ test/unit/services/AuthenticationService.test.ts (6)
2034
- ✓ test/unit/nextjs/middleware.test.ts (7)
2035
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
2036
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
2037
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
2038
- ✓ test/unit/lib/oauth.test.ts (6)
2039
- ✓ test/unit/shared/storage.test.ts (3)
2040
- ✓ test/unit/server/session.test.ts (3)
2041
- ✓ test/unit/utils.test.ts (4)
2042
- · test/unit/react/components/SignInButton.test.tsx (2)
2043
- · test/unit/react/components/SignOutButton.test.tsx (2)
2044
- ✓ test/unit/nextjs/getUser.test.ts (1)
2045
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
2046
- ✓ test/unit/shared/UserSession.test.ts (2)
2047
- ✓ test/unit/nextjs/utils.test.ts (2)
2048
- ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
2049
- [?25lstdout | test/unit/nextjs/NextAuthProvider.test.tsx > CivicNextAuthProvider > should call resolveAuthConfig with no arguments
2050
- BrowserAuthenticationService constructor {
2051
- config: {
2052
- clientId: 'test-client-id',
2053
- redirectUrl: 'https://example.com/callback',
2054
- oauthServer: 'https://example.com',
2055
- scopes: [
2056
- 'openid',
2057
- 'profile',
2058
- 'email',
2059
- 'forwardedTokens',
2060
- 'offline_access'
2061
- ],
2062
- displayMode: 'iframe'
2063
- }
2064
- }
2065
- BrowserAuthenticationInitiator constructor {
2066
- clientId: 'test-client-id',
2067
- redirectUrl: 'https://example.com/callback',
2068
- oauthServer: 'https://example.com',
2069
- scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
2070
- displayMode: 'iframe',
2071
- state: 'eyJ1dWlkIjoiYmJlMDE4OGUtY2Q1OC00MGIxLWJmMjYtNmVhMzU2NGEwMTJlIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
2072
- pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
2073
- }
2074
- handleIframeLoad
2075
-
2076
- stderr | test/unit/nextjs/NextAuthProvider.test.tsx > CivicNextAuthProvider > should call resolveAuthConfig with no arguments
2077
- Warning: An update to CivicAuthIframeContainer inside a test was not wrapped in act(...).
2078
-
2079
- When testing, code that causes React state updates should be wrapped into act(...):
2080
-
2081
- act(() => {
2082
- /* fire events that update state */
2083
- });
2084
- /* assert on the output */
2085
-
2086
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
2087
- at CivicAuthIframeContainer (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/components/CivicAuthIframeContainer.tsx:48:3)
2088
- at div
2089
- at TokenProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/TokenProvider.tsx:15:26)
2090
- at SessionProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/SessionProvider.tsx:11:28)
2091
- at IframeProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/IframeProvider.tsx:11:3)
2092
- at ConfigProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/ConfigProvider.tsx:14:3)
2093
- at AuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/shared/providers/AuthProvider.tsx:53:3)
2094
- at CivicNextAuthProviderInternal (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/nextjs/providers/NextAuthProvider.tsx:26:3)
2095
- at QueryClientProvider (file:///Users/flippie/civic/repos/civic-auth/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
2096
- at CivicNextAuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/nextjs/providers/NextAuthProvider.tsx:74:3)
2097
-
2098
- [?25l ↓ in server token-exchange mode (1) [skipped]
2099
- ↓ in client token-exchange mode (1) [skipped]
2100
- ❯ Logout Handler (5)
2101
- ✓ should clear auth cookies
2102
- × should handle relative redirect paths
2103
- × should handle default redirect to home
2104
- × should handle absolute URLs and preserve the domain
2105
- × should handle revalidation failure gracefully
2106
- ✓ test/integration/sdk.test.tsx (2)
2107
- ✓ test/unit/nextjs/config.test.ts (9)
2108
- ✓ test/unit/server/login.test.ts (6)
2109
- ✓ test/unit/logger.test.ts (11)
2110
- ✓ test/unit/services/AuthenticationService.test.ts (6)
2111
- ✓ test/unit/nextjs/middleware.test.ts (7)
2112
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
2113
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
2114
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
2115
- ✓ test/unit/lib/oauth.test.ts (6)
2116
- ✓ test/unit/shared/storage.test.ts (3)
2117
- ✓ test/unit/server/session.test.ts (3)
2118
- ✓ test/unit/utils.test.ts (4)
2119
- ✓ test/unit/react/components/SignInButton.test.tsx (2)
2120
- ✓ test/unit/react/components/SignOutButton.test.tsx (2)
2121
- ✓ test/unit/nextjs/getUser.test.ts (1)
2122
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
2123
- ✓ test/unit/shared/UserSession.test.ts (2)
2124
- ✓ test/unit/nextjs/utils.test.ts (2)
2125
- ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
2126
- [?25l[?25l ↓ in server token-exchange mode (1) [skipped]
2127
- ↓ in client token-exchange mode (1) [skipped]
2128
- ❯ Logout Handler (5)
2129
- ✓ should clear auth cookies
2130
- × should handle relative redirect paths
2131
- × should handle default redirect to home
2132
- × should handle absolute URLs and preserve the domain
2133
- × should handle revalidation failure gracefully
2134
- ✓ test/integration/sdk.test.tsx (2)
2135
- ✓ test/unit/nextjs/config.test.ts (9)
2136
- ✓ test/unit/server/login.test.ts (6)
2137
- ✓ test/unit/logger.test.ts (11)
2138
- ✓ test/unit/services/AuthenticationService.test.ts (6)
2139
- ✓ test/unit/nextjs/middleware.test.ts (7)
2140
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
2141
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
2142
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
2143
- ✓ test/unit/lib/oauth.test.ts (6)
2144
- ✓ test/unit/shared/storage.test.ts (3)
2145
- ✓ test/unit/server/session.test.ts (3)
2146
- ✓ test/unit/utils.test.ts (4)
2147
- ✓ test/unit/react/components/SignInButton.test.tsx (2)
2148
- ✓ test/unit/react/components/SignOutButton.test.tsx (2)
2149
- ✓ test/unit/nextjs/getUser.test.ts (1)
2150
- ✓ test/unit/nextjs/NextAuthProvider.test.tsx (1)
2151
- ✓ test/unit/shared/UserSession.test.ts (2)
2152
- ✓ test/unit/nextjs/utils.test.ts (2)
2153
- ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
2154
- [?25l[?25l[?25l ✓ test/integration/sdk.test.tsx (2)
2155
- ✓ test/unit/logger.test.ts (11)
2156
- ✓ test/unit/utils.test.ts (4)
2157
- ✓ test/unit/lib/oauth.test.ts (6)
2158
- ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
2159
- ✓ test/unit/nextjs/NextAuthProvider.test.tsx (1)
2160
- ✓ test/unit/nextjs/config.test.ts (9)
2161
- ✓ test/unit/nextjs/getUser.test.ts (1)
2162
- ✓ test/unit/nextjs/middleware.test.ts (7)
2163
- ❯ test/unit/nextjs/routeHandler.test.ts (13)
2164
- ❯ Auth Route Handler (13)
2165
- ✓ Challenge Handler (1)
2166
- ❯ Callback Handler (7)
2167
- × should handle missing parameters
2168
- ❯ with all parameters passed in (6)
2169
- × should handle error when resolving the access code
2170
- ❯ with code_verifier cookie present on request (2)
2171
- × should do token exchange
2172
- × should return empty html response
2173
- ❯ with no code_verifier cookie present on request (3)
2174
- ⠇ [ beforeAll ]
2175
- ↓ should not do token exchange [skipped]
2176
- ↓ in server token-exchange mode (1) [skipped]
2177
- ↓ in client token-exchange mode (1) [skipped]
2178
- ❯ Logout Handler (5)
2179
- ✓ should clear auth cookies
2180
- × should handle relative redirect paths
2181
- × should handle default redirect to home
2182
- × should handle absolute URLs and preserve the domain
2183
- × should handle revalidation failure gracefully
2184
- ✓ test/unit/nextjs/utils.test.ts (2)
2185
- ✓ test/unit/server/login.test.ts (6)
2186
- ✓ test/unit/server/session.test.ts (3)
2187
- ✓ test/unit/services/AuthenticationService.test.ts (6)
2188
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
2189
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
2190
- ✓ test/unit/shared/UserSession.test.ts (2)
2191
- ✓ test/unit/shared/storage.test.ts (3)
2192
- ✓ test/unit/react/components/SignInButton.test.tsx (2)
2193
- ✓ test/unit/react/components/SignOutButton.test.tsx (2)
2194
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
2195
-
2196
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
2197
-
2198
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > with no code_verifier cookie present on request
2199
- TypeError: Cannot set property cookies of #<NextRequest> which has only a getter
2200
-  ❯ test/unit/nextjs/routeHandler.test.ts:267:63
2201
- 265|  describe("with no code_verifier cookie present on request", () => {
2202
- 266|  beforeAll(() => {
2203
- 267|  (mockRequest as unknown as Record<string, unknown>).cookies = {
2204
-  |  ^
2205
- 268|  get: (cookieName: string) => undefined
2206
- 269|  };
2207
-
2208
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/9]⎯
2209
-
2210
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 8 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
2211
-
2212
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > should handle missing parameters
2213
- TypeError: Cannot set property cookies of #<NextRequest> which has only a getter
2214
-  ❯ test/unit/nextjs/routeHandler.test.ts:197:59
2215
- 195|  );
2216
- 196| 
2217
- 197|  (mockRequest as unknown as Record<string, unknown>).cookies = {
2218
-  |  ^
2219
- 198|  get: ((cookieName: string) =>
2220
- 199|  cookieName === "code_verifier" ? "test-code-verifier" : undefined) as any,
2221
-
2222
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/9]⎯
2223
-
2224
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > should handle error when resolving the access code
2225
- AssertionError: expected 500 to be 401 // Object.is equality
2226
-
2227
- - Expected
2228
- + Received
2229
-
2230
- - 401
2231
- + 500
2232
-
2233
-  ❯ test/unit/nextjs/routeHandler.test.ts:239:33
2234
- 237|  error: "Failed to authenticate user",
2235
- 238|  });
2236
- 239|  expect(response.status).toBe(401);
2237
-  |  ^
2238
- 240|  });
2239
- 241|  describe("with code_verifier cookie present on request", () => {
2240
-
2241
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/9]⎯
2242
-
2243
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > with code_verifier cookie present on request > should do token exchange
2244
- AssertionError: expected "resolveOAuthAccessCode" to be called at least once
2245
-  ❯ test/unit/nextjs/routeHandler.test.ts:247:48
2246
- 245| 
2247
- 246|  // should have resolved the access code
2248
- 247|  expect(login.resolveOAuthAccessCode).toHaveBeenCalled();
2249
-  |  ^
2250
- 248| 
2251
- 249|  // verify response data
2252
-
2253
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/9]⎯
2254
-
2255
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Callback Handler > with all parameters passed in > with code_verifier cookie present on request > should return empty html response
2256
- AssertionError: expected ReadableStream{ …(4) } to deeply equal '<html><span style="display:none">serv…'
2257
-
2258
- - Expected:
2259
- "<html><span style=\"display:none\">serverSideTokenExchangeSuccess</span></html>"
2260
-
2261
- + Received:
2262
- ReadableStream {
2263
- Symbol(kType): "ReadableStream",
2264
- Symbol(kState): Object {
2265
- "controller": ReadableByteStreamController {
2266
- Symbol(kType): "ReadableByteStreamController",
2267
- Symbol(kState): Object {
2268
- "autoAllocateChunkSize": undefined,
2269
- "byobRequest": null,
2270
- "cancelAlgorithm": [Function nonOpCancel],
2271
- "closeRequested": false,
2272
- "highWaterMark": 0,
2273
- "pendingPullIntos": Array [],
2274
- "pullAgain": false,
2275
- "pullAlgorithm": [Function anonymous],
2276
- "pulling": false,
2277
- "queue": Array [],
2278
- "queueTotalSize": 0,
2279
- "started": true,
2280
- "stream": [Circular],
2281
- },
2282
- },
2283
- "disturbed": false,
2284
- "reader": undefined,
2285
- "state": "readable",
2286
- "storedError": undefined,
2287
- "transfer": Object {
2288
- "port1": undefined,
2289
- "port2": undefined,
2290
- "promise": undefined,
2291
- "writable": undefined,
2292
- },
2293
- },
2294
- Symbol(nodejs.webstream.isClosedPromise): Object {
2295
- "promise": Promise {},
2296
- "reject": [Function anonymous],
2297
- "resolve": [Function anonymous],
2298
- },
2299
- Symbol(nodejs.webstream.controllerErrorFunction): [Function anonymous],
2300
- }
2301
-
2302
-  ❯ test/unit/nextjs/routeHandler.test.ts:260:33
2303
- 258|  it("should return empty html response", async () => {
2304
- 259|  const response = await routeHandler(mockRequest);
2305
- 260|  expect(response.body).toEqual(
2306
-  |  ^
2307
- 261|  '<html><span style="display:none">serverSideTokenExchangeSuccess</span></html>',
2308
- 262|  );
2309
-
2310
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/9]⎯
2311
-
2312
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Logout Handler > should handle relative redirect paths
2313
- AssertionError: expected '' to be 'https://example.com/dashboard' // Object.is equality
2314
-
2315
- - Expected
2316
- + Received
2317
-
2318
- - https://example.com/dashboard
2319
-
2320
-  ❯ test/unit/nextjs/routeHandler.test.ts:358:28
2321
- 356|  const response = await routeHandler(mockRequest);
2322
- 357| 
2323
- 358|  expect(response.url).toBe("https://example.com/dashboard");
2324
-  |  ^
2325
- 359|  expect(nextCache.revalidatePath).toHaveBeenCalledWith("/dashboard");
2326
- 360|  });
2327
-
2328
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/9]⎯
2329
-
2330
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Logout Handler > should handle default redirect to home
2331
- AssertionError: expected '' to be 'https://example.com/' // Object.is equality
2332
-
2333
- - Expected
2334
- + Received
2335
-
2336
- - https://example.com/
2337
-
2338
-  ❯ test/unit/nextjs/routeHandler.test.ts:371:28
2339
- 369|  const response = await routeHandler(mockRequest);
2340
- 370| 
2341
- 371|  expect(response.url).toBe("https://example.com/");
2342
-  |  ^
2343
- 372|  expect(nextCache.revalidatePath).toHaveBeenCalledWith("/");
2344
- 373|  });
2345
-
2346
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/9]⎯
2347
-
2348
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Logout Handler > should handle absolute URLs and preserve the domain
2349
- AssertionError: expected '' to be 'https://other-domain.com/page' // Object.is equality
2350
-
2351
- - Expected
2352
- + Received
2353
-
2354
- - https://other-domain.com/page
2355
-
2356
-  ❯ test/unit/nextjs/routeHandler.test.ts:385:28
2357
- 383| 
2358
- 384|  // The URL constructor will preserve the absolute URL
2359
- 385|  expect(response.url).toBe("https://other-domain.com/page");
2360
-  |  ^
2361
- 386|  expect(nextCache.revalidatePath).toHaveBeenCalledWith(
2362
- 387|  "https://other-domain.com/page",
2363
-
2364
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[8/9]⎯
2365
-
2366
-  FAIL  test/unit/nextjs/routeHandler.test.ts > Auth Route Handler > Logout Handler > should handle revalidation failure gracefully
2367
- AssertionError: expected '' to be 'https://example.com/dashboard' // Object.is equality
2368
-
2369
- - Expected
2370
- + Received
2371
-
2372
- - https://example.com/dashboard
2373
-
2374
-  ❯ test/unit/nextjs/routeHandler.test.ts:404:28
2375
- 402|  const routeHandler = handler();
2376
- 403|  const response = await routeHandler(mockRequest);
2377
- 404|  expect(response.url).toBe("https://example.com/dashboard");
2378
-  |  ^
2379
- 405|  // expect(mockLogger.warn).toHaveBeenCalled();
2380
- 406|  });
2381
-
2382
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[9/9]⎯
2383
-
2384
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
2385
- 
2386
- Vitest caught 1 unhandled error during the test run.
2387
- This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
2388
-
2389
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
2390
- AssertionError: expected { Object (error) } to deeply equal { Object (error) }
2391
-
2392
- - Expected
2393
- + Received
2394
-
2395
-  Object {
2396
- - "error": "Failed to authenticate user",
2397
- + "error": "`cookies` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context",
2398
-  }
2399
-
2400
-  ❯ ../../node_modules/@vitest/expect/dist/index.js:1700:31
2401
-  ❯ processTicksAndRejections node:internal/process/task_queues:105:5
2402
-
2403
- This error originated in "test/unit/nextjs/routeHandler.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
2404
- The latest test that might've caused the error is "test/unit/nextjs/routeHandler.test.ts". It might mean one of the following:
2405
- - The error was thrown, while Vitest was running this test.
2406
- - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
2407
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
2408
-
2409
-  Test Files  1 failed | 20 passed (21)
2410
-  Tests  8 failed | 81 passed | 3 skipped (92)
2411
-  Errors  1 error
2412
-  Start at  13:55:27
2413
-  Duration  2.33s (transform 904ms, setup 0ms, collect 4.91s, tests 468ms, environment 12.35s, prepare 1.86s)
2414
-
2415
- [?25h[?25h ELIFECYCLE  Test failed. See above for more details.