@civic/auth 0.0.1-beta.26 → 0.0.1-beta.27

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 (50) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +286 -345
  4. package/dist/cjs/src/nextjs/index.d.ts +1 -1
  5. package/dist/cjs/src/nextjs/index.d.ts.map +1 -1
  6. package/dist/cjs/src/nextjs/index.js +1 -3
  7. package/dist/cjs/src/nextjs/index.js.map +1 -1
  8. package/dist/cjs/src/reactjs/components/UserButton.d.ts.map +1 -1
  9. package/dist/cjs/src/reactjs/components/UserButton.js +25 -12
  10. package/dist/cjs/src/reactjs/components/UserButton.js.map +1 -1
  11. package/dist/cjs/src/reactjs/hooks/index.d.ts +0 -1
  12. package/dist/cjs/src/reactjs/hooks/index.d.ts.map +1 -1
  13. package/dist/cjs/src/reactjs/hooks/index.js +1 -3
  14. package/dist/cjs/src/reactjs/hooks/index.js.map +1 -1
  15. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  16. package/dist/esm/src/nextjs/index.d.ts +1 -1
  17. package/dist/esm/src/nextjs/index.d.ts.map +1 -1
  18. package/dist/esm/src/nextjs/index.js +1 -1
  19. package/dist/esm/src/nextjs/index.js.map +1 -1
  20. package/dist/esm/src/reactjs/components/UserButton.d.ts.map +1 -1
  21. package/dist/esm/src/reactjs/components/UserButton.js +26 -13
  22. package/dist/esm/src/reactjs/components/UserButton.js.map +1 -1
  23. package/dist/esm/src/reactjs/hooks/index.d.ts +0 -1
  24. package/dist/esm/src/reactjs/hooks/index.d.ts.map +1 -1
  25. package/dist/esm/src/reactjs/hooks/index.js +0 -1
  26. package/dist/esm/src/reactjs/hooks/index.js.map +1 -1
  27. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  28. package/dist/src/nextjs/index.d.ts +1 -1
  29. package/dist/src/nextjs/index.d.ts.map +1 -1
  30. package/dist/src/nextjs/index.js +1 -1
  31. package/dist/src/nextjs/index.js.map +1 -1
  32. package/dist/src/reactjs/components/UserButton.d.ts.map +1 -1
  33. package/dist/src/reactjs/components/UserButton.js +26 -13
  34. package/dist/src/reactjs/components/UserButton.js.map +1 -1
  35. package/dist/src/reactjs/hooks/index.d.ts +0 -1
  36. package/dist/src/reactjs/hooks/index.d.ts.map +1 -1
  37. package/dist/src/reactjs/hooks/index.js +0 -1
  38. package/dist/src/reactjs/hooks/index.js.map +1 -1
  39. package/dist/src/shared/lib/util.d.ts.map +1 -1
  40. package/dist/src/shared/lib/util.js +0 -2
  41. package/dist/src/shared/lib/util.js.map +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/dist/vitest.config.js +3 -3
  44. package/dist/vitest.config.js.map +1 -1
  45. package/package.json +4 -4
  46. package/src/nextjs/index.ts +1 -5
  47. package/src/reactjs/components/UserButton.tsx +34 -10
  48. package/src/reactjs/hooks/index.ts +0 -1
  49. package/test/unit/publicApi/__snapshots__/apiSnapshot.test.ts.snap +0 -1
  50. package/src/nextjs/client/index.ts +0 -4
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @civic/auth@0.0.1-beta.25 test /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client
3
+ > @civic/auth@0.0.1-beta.26 test /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client
4
4
  > vitest "--run" "--coverage"
5
5
 
6
6
 
@@ -8,22 +8,20 @@
8
8
   Coverage enabled with v8
9
9
 
10
10
  [?25l · test/unit/logger.test.ts (11)
11
- · test/unit/shared/storage.test.ts (3)
12
- · test/unit/utils.test.ts (4)
13
- stdout | test/unit/nextjs/config.test.ts
11
+ [?25l[?25l ✓ test/unit/logger.test.ts (11)
12
+ [?25l[?25l[?25l[?25lstdout | test/unit/nextjs/config.test.ts
14
13
  process.env.NODE_ENV: development
15
14
  defaultServerSecure: false
16
15
 
17
- stdout | test/unit/nextjs/middleware.test.ts
16
+ [?25l · test/unit/nextjs/config.test.ts (10)
17
+ ✓ test/unit/logger.test.ts (11)
18
+ · test/unit/shared/storage.test.ts (3)
19
+ · test/unit/utils.test.ts (4)
20
+ stdout | test/unit/nextjs/middleware.test.ts
18
21
  process.env.NODE_ENV: development
19
22
  defaultServerSecure: false
20
23
 
21
- [?25l · test/unit/nextjs/config.test.ts (10)
22
- · test/unit/logger.test.ts (11)
23
- · test/unit/nextjs/middleware.test.ts (7)
24
- · test/unit/shared/storage.test.ts (3)
25
- ✓ test/unit/utils.test.ts (4)
26
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > authMiddleware > should allow access when token is present
24
+ stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > authMiddleware > should allow access when token is present
27
25
  matching { pattern: '/*', pathname: '/protected', match: true }
28
26
  → Auth check passed
29
27
 
@@ -38,7 +36,12 @@ matching { pattern: '/*', pathname: '/login', match: tr
38
36
  matching { pattern: '/*', pathname: '/protected', match: true }
39
37
  → Auth check passed
40
38
 
41
- stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > withAuth > should not chain custom middleware when unauthorized
39
+ [?25l · test/unit/nextjs/config.test.ts (10)
40
+ ✓ test/unit/logger.test.ts (11)
41
+ · test/unit/nextjs/middleware.test.ts (7)
42
+ · test/unit/shared/storage.test.ts (3)
43
+ · test/unit/utils.test.ts (4)
44
+ stdout | test/unit/nextjs/middleware.test.ts > Auth Middleware > withAuth > should not chain custom middleware when unauthorized
42
45
  matching { pattern: '/*', pathname: '/protected', match: true }
43
46
  → No valid token found - redirecting to login URL {}
44
47
 
@@ -63,51 +66,50 @@ matching {
63
66
  process.env.NODE_ENV: production
64
67
  defaultServerSecure: true
65
68
 
66
- [?25l · test/unit/nextjs/config.test.ts (10)
69
+ [?25l ❯ test/unit/nextjs/config.test.ts (10)
70
+ ❯ nextjs/config (10)
71
+ ❯ resolveAuthConfig (7)
72
+ ✓ should throw an error if clientId is not provided
73
+ ✓ should use default values when no config is provided
74
+ ✓ should override default values with provided config
75
+ ✓ should use environment variables if set
76
+ ✓ should prioritize provided config over environment variables
77
+ ✓ should merge cookie configurations correctly
78
+ ⠙ should set secure to true in the default cookie configs if NODE_ENV is not development
79
+ · createCivicAuthPlugin (3)
67
80
  ✓ test/unit/logger.test.ts (11)
68
81
  · test/unit/nextjs/middleware.test.ts (7)
69
- ✓ test/unit/shared/storage.test.ts (3)
70
- ✓ test/unit/utils.test.ts (4)
71
- [?25l · test/unit/nextjs/config.test.ts (10)
72
- ✓ test/unit/logger.test.ts (11)
73
- ✓ test/unit/nextjs/middleware.test.ts (7)
74
- ✓ test/unit/shared/storage.test.ts (3)
75
- ✓ test/unit/utils.test.ts (4)
76
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
82
+ · test/unit/shared/storage.test.ts (3)
83
+ · test/unit/utils.test.ts (4)
84
+ [?25l ❯ test/unit/nextjs/config.test.ts (10)
85
+ ❯ nextjs/config (10)
86
+ ❯ resolveAuthConfig (7)
87
+ ✓ should throw an error if clientId is not provided
88
+ ✓ should use default values when no config is provided
89
+ ✓ should override default values with provided config
90
+ ✓ should use environment variables if set
91
+ ✓ should prioritize provided config over environment variables
92
+ ✓ should merge cookie configurations correctly
93
+ ⠹ should set secure to true in the default cookie configs if NODE_ENV is not development
94
+ · createCivicAuthPlugin (3)
77
95
  ✓ test/unit/logger.test.ts (11)
78
- ✓ test/unit/nextjs/middleware.test.ts (7)
96
+ · test/unit/nextjs/middleware.test.ts (7)
79
97
  ✓ test/unit/shared/storage.test.ts (3)
80
98
  ✓ test/unit/utils.test.ts (4)
81
- [?25l[?25lstderr | test/unit/lib/oauth.test.ts > displayModeFromState > should return the display mode from the state
82
- Failed to parse displayMode from state: state DOMException [InvalidCharacterError]: The string to be decoded is not correctly encoded.
83
-  at atob (node:buffer:1296:13)
84
- at Module.displayModeFromState (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/lib/oauth.ts:59:24)
85
- at /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/test/unit/lib/oauth.test.ts:42:20
86
- at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:146:14
87
- at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:533:11
88
- at runWithTimeout (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:61:7)
89
- at runTest (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:986:17)
90
-  at processTicksAndRejections (node:internal/process/task_queues:105:5)
91
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
92
- at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
93
-
94
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
99
+ [?25l ✓ test/unit/nextjs/config.test.ts (10)
95
100
  ✓ test/unit/logger.test.ts (11)
96
101
  ✓ test/unit/nextjs/middleware.test.ts (7)
97
- · test/unit/lib/oauth.test.ts (6)
98
102
  ✓ test/unit/shared/storage.test.ts (3)
99
103
  ✓ test/unit/utils.test.ts (4)
100
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
104
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ test/unit/nextjs/config.test.ts (10)
101
105
  ✓ test/unit/logger.test.ts (11)
102
- · test/unit/services/AuthenticationService.test.ts (6)
103
106
  ✓ test/unit/nextjs/middleware.test.ts (7)
104
107
  · test/unit/services/ServerAuthenticationResolver.test.ts (5)
105
108
  · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
106
109
  · test/unit/lib/oauth.test.ts (6)
107
110
  ✓ test/unit/shared/storage.test.ts (3)
108
- · test/unit/server/session.test.ts (3)
109
111
  ✓ test/unit/utils.test.ts (4)
110
- stdout | test/unit/shared/GenericAuthenticationRefresher.test.ts > GenericAuthenticationRefresher > init > should initialize OAuth2 client with resolved endpoints
112
+ stdout | test/unit/shared/GenericAuthenticationRefresher.test.ts > GenericAuthenticationRefresher > init > should initialize OAuth2 client with resolved endpoints
111
113
  GenericAuthenticationRefresher constructor {
112
114
  authConfig: {
113
115
  clientId: 'mockClientId',
@@ -137,6 +139,19 @@ GenericAuthenticationRefresher constructor {
137
139
  endpointOverrides: undefined
138
140
  }
139
141
 
142
+ stderr | test/unit/lib/oauth.test.ts > displayModeFromState > should return the display mode from the state
143
+ Failed to parse displayMode from state: state DOMException [InvalidCharacterError]: The string to be decoded is not correctly encoded.
144
+  at atob (node:buffer:1296:13)
145
+ at Module.displayModeFromState (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/lib/oauth.ts:59:24)
146
+ at /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/test/unit/lib/oauth.test.ts:42:20
147
+ at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:146:14
148
+ at file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:533:11
149
+ at runWithTimeout (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:61:7)
150
+ at runTest (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:986:17)
151
+  at processTicksAndRejections (node:internal/process/task_queues:105:5)
152
+ at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
153
+ at runSuite (file:///Users/flippie/civic/repos/civic-auth/node_modules/@vitest/runner/dist/index.js:1142:15)
154
+
140
155
  stdout | test/unit/services/ServerAuthenticationResolver.test.ts > ServerAuthenticationResolver > init > should initialize OAuth2 client with resolved endpoints
141
156
  ServerAuthenticationResolver constructor {
142
157
  authConfig: {
@@ -198,17 +213,16 @@ ServerAuthenticationResolver constructor {
198
213
  }
199
214
 
200
215
  [?25l ✓ test/unit/nextjs/config.test.ts (10)
201
- · test/unit/server/login.test.ts (6)
202
216
  ✓ test/unit/logger.test.ts (11)
203
217
  · test/unit/services/AuthenticationService.test.ts (6)
204
218
  ✓ test/unit/nextjs/middleware.test.ts (7)
205
219
  · test/unit/services/ServerAuthenticationResolver.test.ts (5)
206
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
207
- · test/unit/lib/oauth.test.ts (6)
220
+ ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
221
+ ✓ test/unit/lib/oauth.test.ts (6)
208
222
  ✓ test/unit/shared/storage.test.ts (3)
209
223
  · test/unit/server/session.test.ts (3)
210
224
  ✓ test/unit/utils.test.ts (4)
211
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a login URL
225
+ [?25lstdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a login URL
212
226
  BrowserAuthenticationInitiator constructor {
213
227
  clientId: 'mockClientId',
214
228
  redirectUrl: 'http://localhost/redirect',
@@ -232,18 +246,7 @@ Error: Not implemented: navigation (except hash changes)
232
246
  at processTicksAndRejections (node:internal/process/task_queues:105:5)
233
247
  at /Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/test/unit/services/AuthenticationService.test.ts:54:19 undefined
234
248
 
235
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
236
- · test/unit/server/login.test.ts (6)
237
- ✓ test/unit/logger.test.ts (11)
238
- · test/unit/services/AuthenticationService.test.ts (6)
239
- ✓ test/unit/nextjs/middleware.test.ts (7)
240
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
241
- · test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
242
- ✓ test/unit/lib/oauth.test.ts (6)
243
- ✓ test/unit/shared/storage.test.ts (3)
244
- · test/unit/server/session.test.ts (3)
245
- ✓ test/unit/utils.test.ts (4)
246
- stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a logout URL
249
+ stdout | test/unit/services/AuthenticationService.test.ts > Authentication Services > BrowserAuthenticationInitiator > should generate a logout URL
247
250
  BrowserAuthenticationInitiator constructor {
248
251
  clientId: 'mockClientId',
249
252
  redirectUrl: 'http://localhost/redirect',
@@ -294,7 +297,7 @@ BrowserAuthenticationService constructor {
294
297
  BrowserAuthenticationInitiator constructor {
295
298
  clientId: 'mockClientId',
296
299
  redirectUrl: 'http://localhost/redirect',
297
- state: 'eyJ1dWlkIjoiMDY2MzZlZmUtMThlMy00YTljLWFkMWMtODRjYzk4NDU1N2NmIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
300
+ state: 'eyJ1dWlkIjoiNWUzZjNkOTMtNmQxYi00Yzg4LWJjNTgtYTA1ODY0NjZiMDU4IiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
298
301
  scopes: [ 'openid', 'profile' ],
299
302
  displayMode: 'redirect',
300
303
  oauthServer: 'http://mockOauthServer',
@@ -383,7 +386,7 @@ BrowserAuthenticationService constructor {
383
386
  BrowserAuthenticationInitiator constructor {
384
387
  clientId: 'mockClientId',
385
388
  redirectUrl: 'http://localhost/redirect',
386
- state: 'eyJ1dWlkIjoiM2VmMWIxY2EtMjYzYy00MDNlLWEzNGItNGRiMzM5ZjhjNmI4IiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
389
+ state: 'eyJ1dWlkIjoiM2FjNmM0MDgtMTAxNS00ZGQ1LTk4ZjAtOTAxMmY2OGIxNTg5IiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
387
390
  scopes: [ 'openid', 'profile' ],
388
391
  displayMode: 'redirect',
389
392
  oauthServer: 'http://mockOauthServer',
@@ -450,70 +453,36 @@ BrowserAuthenticationInitiator constructor {
450
453
  ✓ test/unit/logger.test.ts (11)
451
454
  ✓ test/unit/services/AuthenticationService.test.ts (6)
452
455
  ✓ test/unit/nextjs/middleware.test.ts (7)
453
- · test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
454
456
  · test/unit/services/ServerAuthenticationResolver.test.ts (5)
455
457
  ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
456
458
  ✓ test/unit/lib/oauth.test.ts (6)
457
459
  ✓ test/unit/shared/storage.test.ts (3)
458
460
  · test/unit/server/session.test.ts (3)
459
461
  ✓ test/unit/utils.test.ts (4)
460
- [?25l[?25l ✓ test/unit/nextjs/config.test.ts (10)
461
- ✓ test/unit/server/login.test.ts (6)
462
- ✓ test/unit/logger.test.ts (11)
463
- ✓ test/unit/services/AuthenticationService.test.ts (6)
464
- ✓ test/unit/nextjs/middleware.test.ts (7)
465
- · test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
466
- · test/unit/services/ServerAuthenticationResolver.test.ts (5)
467
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
468
- ✓ test/unit/lib/oauth.test.ts (6)
469
- ✓ test/unit/shared/storage.test.ts (3)
470
- ✓ test/unit/server/session.test.ts (3)
471
- ✓ test/unit/utils.test.ts (4)
472
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
473
- ✓ test/unit/server/login.test.ts (6)
474
- ✓ test/unit/logger.test.ts (11)
475
- ✓ test/unit/services/AuthenticationService.test.ts (6)
476
- ✓ test/unit/nextjs/middleware.test.ts (7)
477
- · test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
478
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
479
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
480
- ✓ test/unit/lib/oauth.test.ts (6)
481
- ✓ test/unit/shared/storage.test.ts (3)
482
- ✓ test/unit/server/session.test.ts (3)
483
- ✓ test/unit/utils.test.ts (4)
484
- [?25l[?25l[?25l ✓ test/unit/nextjs/config.test.ts (10)
485
- ✓ test/unit/server/login.test.ts (6)
462
+ [?25l ✓ test/unit/nextjs/config.test.ts (10)
463
+ · test/unit/server/login.test.ts (6)
486
464
  ✓ test/unit/logger.test.ts (11)
487
465
  ✓ test/unit/services/AuthenticationService.test.ts (6)
488
466
  ✓ test/unit/nextjs/middleware.test.ts (7)
489
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
490
- ❯ CivicAuthIframeContainer (3)
491
- ⠙ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
492
- · sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
493
- · does not call onClose if closeOnRedirect is false
494
467
  ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
495
468
  ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
496
469
  ✓ test/unit/lib/oauth.test.ts (6)
497
470
  ✓ test/unit/shared/storage.test.ts (3)
498
471
  ✓ test/unit/server/session.test.ts (3)
499
472
  ✓ test/unit/utils.test.ts (4)
500
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
473
+ [?25l ✓ test/unit/nextjs/config.test.ts (10)
501
474
  ✓ test/unit/server/login.test.ts (6)
502
475
  ✓ test/unit/logger.test.ts (11)
503
476
  ✓ test/unit/services/AuthenticationService.test.ts (6)
504
477
  ✓ test/unit/nextjs/middleware.test.ts (7)
505
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
506
- ❯ CivicAuthIframeContainer (3)
507
- ⠹ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
508
- · sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
509
- · does not call onClose if closeOnRedirect is false
478
+ · test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
510
479
  ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
511
480
  ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
512
481
  ✓ test/unit/lib/oauth.test.ts (6)
513
482
  ✓ test/unit/shared/storage.test.ts (3)
514
483
  ✓ test/unit/server/session.test.ts (3)
515
484
  ✓ test/unit/utils.test.ts (4)
516
- stdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
485
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25lstdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
517
486
  handleIframeLoad
518
487
  sameDomainCodeExchangeRequired, calling callback URL again...
519
488
  handleIframeLoad
@@ -523,77 +492,13 @@ sameDomainCodeExchangeRequired, calling callback URL again...
523
492
  handleIframeLoad
524
493
  handleIframeLoad
525
494
 
526
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
527
- ✓ test/unit/server/login.test.ts (6)
528
- ✓ test/unit/logger.test.ts (11)
529
- ✓ test/unit/services/AuthenticationService.test.ts (6)
530
- ✓ test/unit/nextjs/middleware.test.ts (7)
531
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
532
- ❯ CivicAuthIframeContainer (3)
533
- ✓ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
534
- ⠙ sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
535
- · does not call onClose if closeOnRedirect is false
536
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
537
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
538
- ✓ test/unit/lib/oauth.test.ts (6)
539
- ✓ test/unit/shared/storage.test.ts (3)
540
- ✓ test/unit/server/session.test.ts (3)
541
- ✓ test/unit/utils.test.ts (4)
542
- stdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > does not call onClose if closeOnRedirect is false
495
+ stdout | test/unit/shared/components/CivicAuthIframeContainer.test.tsx > CivicAuthIframeContainer > does not call onClose if closeOnRedirect is false
543
496
  handleIframeLoad
544
497
  sameDomainCodeExchangeRequired, calling callback URL again...
545
498
  handleIframeLoad
546
499
  sameDomainCodeExchangeRequired, calling callback URL again...
547
500
 
548
501
  [?25l ✓ test/unit/nextjs/config.test.ts (10)
549
- ✓ test/unit/server/login.test.ts (6)
550
- ✓ test/unit/logger.test.ts (11)
551
- ✓ test/unit/services/AuthenticationService.test.ts (6)
552
- ✓ test/unit/nextjs/middleware.test.ts (7)
553
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
554
- ❯ CivicAuthIframeContainer (3)
555
- ✓ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
556
- ⠹ sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
557
- · does not call onClose if closeOnRedirect is false
558
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
559
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
560
- ✓ test/unit/lib/oauth.test.ts (6)
561
- ✓ test/unit/shared/storage.test.ts (3)
562
- ✓ test/unit/server/session.test.ts (3)
563
- ✓ test/unit/utils.test.ts (4)
564
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
565
- ✓ test/unit/server/login.test.ts (6)
566
- ✓ test/unit/logger.test.ts (11)
567
- ✓ test/unit/services/AuthenticationService.test.ts (6)
568
- ✓ test/unit/nextjs/middleware.test.ts (7)
569
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
570
- ❯ CivicAuthIframeContainer (3)
571
- ✓ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
572
- ⠸ sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
573
- · does not call onClose if closeOnRedirect is false
574
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
575
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
576
- ✓ test/unit/lib/oauth.test.ts (6)
577
- ✓ test/unit/shared/storage.test.ts (3)
578
- ✓ test/unit/server/session.test.ts (3)
579
- ✓ test/unit/utils.test.ts (4)
580
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
581
- ✓ test/unit/server/login.test.ts (6)
582
- ✓ test/unit/logger.test.ts (11)
583
- ✓ test/unit/services/AuthenticationService.test.ts (6)
584
- ✓ test/unit/nextjs/middleware.test.ts (7)
585
- ❯ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
586
- ❯ CivicAuthIframeContainer (3)
587
- ✓ triggers a fetch request when 'sameDomainCodeExchangeRequired' is in the iframe body
588
- ⠼ sets auth response URL when no 'sameDomainCodeExchangeRequired' in iframe body
589
- · does not call onClose if closeOnRedirect is false
590
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
591
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
592
- ✓ test/unit/lib/oauth.test.ts (6)
593
- ✓ test/unit/shared/storage.test.ts (3)
594
- ✓ test/unit/server/session.test.ts (3)
595
- ✓ test/unit/utils.test.ts (4)
596
- [?25l ✓ test/unit/nextjs/config.test.ts (10)
597
502
  ✓ test/unit/server/login.test.ts (6)
598
503
  ✓ test/unit/logger.test.ts (11)
599
504
  ✓ test/unit/services/AuthenticationService.test.ts (6)
@@ -605,7 +510,7 @@ sameDomainCodeExchangeRequired, calling callback URL again...
605
510
  ✓ test/unit/shared/storage.test.ts (3)
606
511
  ✓ test/unit/server/session.test.ts (3)
607
512
  ✓ test/unit/utils.test.ts (4)
608
- [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l · test/integration/sdk.test.tsx (2)
513
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l · test/integration/sdk.test.tsx (2)
609
514
  ✓ test/unit/nextjs/config.test.ts (10)
610
515
  ✓ test/unit/server/login.test.ts (6)
611
516
  ✓ test/unit/logger.test.ts (11)
@@ -618,7 +523,7 @@ sameDomainCodeExchangeRequired, calling callback URL again...
618
523
  ✓ test/unit/shared/storage.test.ts (3)
619
524
  ✓ test/unit/server/session.test.ts (3)
620
525
  ✓ test/unit/utils.test.ts (4)
621
- [?25lstdout | test/integration/sdk.test.tsx > OAuth login > should set the correct auth url for login with redirect
526
+ [?25l[?25l[?25lstdout | test/integration/sdk.test.tsx > OAuth login > should set the correct auth url for login with redirect
622
527
  BrowserAuthenticationService constructor {
623
528
  config: {
624
529
  clientId: 'test-client-id',
@@ -640,14 +545,14 @@ BrowserAuthenticationInitiator constructor {
640
545
  oauthServer: 'http://localhost:3001',
641
546
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
642
547
  displayMode: 'iframe',
643
- state: 'eyJ1dWlkIjoiZGZkNjIyZjAtNjgzMC00MmNmLTk4OTctZGM0YTUwZTNhMGRhIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
548
+ state: 'eyJ1dWlkIjoiNzRlZjBlZjMtN2RiZS00NjZlLWIxNzMtZWRhMzBmNDZmZGE3IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
644
549
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
645
550
  }
646
551
  BrowserAuthenticationInitiator constructor {
647
552
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} },
648
553
  clientId: 'test-client-id',
649
554
  redirectUrl: 'http://localhost:3001/callback',
650
- state: 'eyJ1dWlkIjoiYmUzZTUxNjgtOGI1NC00MDY3LWFhNTctOTRmOGVkMzRhMGM1IiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
555
+ state: 'eyJ1dWlkIjoiMTQ0YWQ3OGQtNDY3Mi00MTY3LWFkMzktZWQ2NDU2MTQwMTBmIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
651
556
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
652
557
  displayMode: 'redirect',
653
558
  oauthServer: 'http://localhost:3001',
@@ -675,7 +580,7 @@ BrowserAuthenticationInitiator constructor {
675
580
  oauthServer: 'http://localhost:3001',
676
581
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
677
582
  displayMode: 'redirect',
678
- state: 'eyJ1dWlkIjoiNmIxMTU3M2YtYmVlZS00YTBlLWE2YzUtYThjMGM2M2I4YTIzIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
583
+ state: 'eyJ1dWlkIjoiMmM3ZjlmZjUtNjY2My00YjUxLTgwN2YtMzkxMjlmNWEzMjFlIiwiZGlzcGxheU1vZGUiOiJyZWRpcmVjdCJ9',
679
584
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
680
585
  }
681
586
  handleIframeLoad
@@ -699,6 +604,22 @@ Generated OAuth URL http://localhost:3001/oauth/auth?response_type=code&client_i
699
604
  ✓ test/unit/shared/storage.test.ts (3)
700
605
  ✓ test/unit/server/session.test.ts (3)
701
606
  ✓ test/unit/utils.test.ts (4)
607
+ [?25l ❯ test/integration/sdk.test.tsx (2)
608
+ ❯ OAuth login (2)
609
+ ⠹ should set the correct auth url for login with redirect
610
+ · should initiate code exchange, validate tokens, and derive user from ID token
611
+ ✓ test/unit/nextjs/config.test.ts (10)
612
+ ✓ test/unit/server/login.test.ts (6)
613
+ ✓ test/unit/logger.test.ts (11)
614
+ ✓ test/unit/services/AuthenticationService.test.ts (6)
615
+ ✓ test/unit/nextjs/middleware.test.ts (7)
616
+ ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
617
+ ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
618
+ ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
619
+ ✓ test/unit/lib/oauth.test.ts (6)
620
+ ✓ test/unit/shared/storage.test.ts (3)
621
+ ✓ test/unit/server/session.test.ts (3)
622
+ ✓ test/unit/utils.test.ts (4)
702
623
  stdout | test/integration/sdk.test.tsx > OAuth login > should initiate code exchange, validate tokens, and derive user from ID token
703
624
  BrowserAuthenticationService constructor {
704
625
  config: {
@@ -721,7 +642,7 @@ BrowserAuthenticationInitiator constructor {
721
642
  oauthServer: 'http://localhost:3001',
722
643
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
723
644
  displayMode: 'iframe',
724
- state: 'eyJ1dWlkIjoiOTQ1ZDgyZmQtMTAwNS00YzYxLWE0ZjAtOTg1NTEzYjM1NGIyIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
645
+ state: 'eyJ1dWlkIjoiNDg1MTIyZDgtNThlOC00N2FlLTg5YjUtYjMxODdkMWM4ODgyIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
725
646
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
726
647
  }
727
648
  handleIframeLoad
@@ -782,7 +703,52 @@ window.history.replaceState failed DOMException {}
782
703
  ✓ test/unit/shared/storage.test.ts (3)
783
704
  ✓ test/unit/server/session.test.ts (3)
784
705
  ✓ test/unit/utils.test.ts (4)
785
- stdout | test/unit/nextjs/getUser.test.ts
706
+ [?25l ❯ test/integration/sdk.test.tsx (2)
707
+ ❯ OAuth login (2)
708
+ ✓ should set the correct auth url for login with redirect
709
+ ⠼ should initiate code exchange, validate tokens, and derive user from ID token
710
+ ✓ test/unit/nextjs/config.test.ts (10)
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
+ ✓ test/unit/utils.test.ts (4)
722
+ [?25l ❯ test/integration/sdk.test.tsx (2)
723
+ ❯ OAuth login (2)
724
+ ✓ should set the correct auth url for login with redirect
725
+ ⠴ should initiate code exchange, validate tokens, and derive user from ID token
726
+ ✓ test/unit/nextjs/config.test.ts (10)
727
+ ✓ test/unit/server/login.test.ts (6)
728
+ ✓ test/unit/logger.test.ts (11)
729
+ ✓ test/unit/services/AuthenticationService.test.ts (6)
730
+ ✓ test/unit/nextjs/middleware.test.ts (7)
731
+ ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
732
+ ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
733
+ ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
734
+ ✓ test/unit/lib/oauth.test.ts (6)
735
+ ✓ test/unit/shared/storage.test.ts (3)
736
+ ✓ test/unit/server/session.test.ts (3)
737
+ ✓ test/unit/utils.test.ts (4)
738
+ [?25l ✓ test/integration/sdk.test.tsx (2)
739
+ ✓ test/unit/nextjs/config.test.ts (10)
740
+ ✓ test/unit/server/login.test.ts (6)
741
+ ✓ test/unit/logger.test.ts (11)
742
+ ✓ test/unit/services/AuthenticationService.test.ts (6)
743
+ ✓ test/unit/nextjs/middleware.test.ts (7)
744
+ ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
745
+ ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
746
+ ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
747
+ ✓ test/unit/lib/oauth.test.ts (6)
748
+ ✓ test/unit/shared/storage.test.ts (3)
749
+ ✓ test/unit/server/session.test.ts (3)
750
+ ✓ test/unit/utils.test.ts (4)
751
+ [?25l[?25lstdout | test/unit/nextjs/getUser.test.ts
786
752
  process.env.NODE_ENV: development
787
753
  defaultServerSecure: false
788
754
 
@@ -799,7 +765,7 @@ defaultServerSecure: false
799
765
  ✓ test/unit/shared/storage.test.ts (3)
800
766
  ✓ test/unit/server/session.test.ts (3)
801
767
  ✓ test/unit/utils.test.ts (4)
802
- [?25l[?25l[?25l[?25l[?25l[?25l ✓ test/integration/sdk.test.tsx (2)
768
+ [?25l ✓ test/integration/sdk.test.tsx (2)
803
769
  ✓ test/unit/nextjs/config.test.ts (10)
804
770
  ✓ test/unit/server/login.test.ts (6)
805
771
  ✓ test/unit/logger.test.ts (11)
@@ -827,7 +793,7 @@ defaultServerSecure: false
827
793
  ✓ test/unit/server/session.test.ts (3)
828
794
  ✓ test/unit/utils.test.ts (4)
829
795
  ✓ test/unit/shared/UserSession.test.ts (2)
830
- [?25l ✓ test/integration/sdk.test.tsx (2)
796
+ [?25l[?25l[?25l ✓ test/integration/sdk.test.tsx (2)
831
797
  ✓ test/unit/nextjs/config.test.ts (10)
832
798
  ✓ test/unit/server/login.test.ts (6)
833
799
  ✓ test/unit/logger.test.ts (11)
@@ -857,7 +823,7 @@ defaultServerSecure: false
857
823
  ✓ test/unit/utils.test.ts (4)
858
824
  ✓ test/unit/shared/UserSession.test.ts (2)
859
825
  ✓ test/unit/nextjs/utils.test.ts (1)
860
- [?25l[?25l[?25l ✓ test/integration/sdk.test.tsx (2)
826
+ [?25l[?25l ✓ test/integration/sdk.test.tsx (2)
861
827
  ✓ test/unit/nextjs/config.test.ts (10)
862
828
  ✓ test/unit/server/login.test.ts (6)
863
829
  ✓ test/unit/logger.test.ts (11)
@@ -871,10 +837,9 @@ defaultServerSecure: false
871
837
  ✓ test/unit/server/session.test.ts (3)
872
838
  ✓ test/unit/utils.test.ts (4)
873
839
  · test/unit/react/components/SignInButton.test.tsx (2)
874
- · test/unit/nextjs/getUser.test.ts (1)
875
840
  ✓ test/unit/shared/UserSession.test.ts (2)
876
841
  ✓ test/unit/nextjs/utils.test.ts (1)
877
- [?25l ✓ test/integration/sdk.test.tsx (2)
842
+ [?25l[?25l ✓ test/integration/sdk.test.tsx (2)
878
843
  ✓ test/unit/nextjs/config.test.ts (10)
879
844
  ✓ test/unit/server/login.test.ts (6)
880
845
  ✓ test/unit/logger.test.ts (11)
@@ -889,10 +854,9 @@ defaultServerSecure: false
889
854
  ✓ test/unit/utils.test.ts (4)
890
855
  · test/unit/react/components/SignInButton.test.tsx (2)
891
856
  · test/unit/react/components/SignOutButton.test.tsx (2)
892
- · test/unit/nextjs/getUser.test.ts (1)
893
857
  ✓ test/unit/shared/UserSession.test.ts (2)
894
858
  ✓ test/unit/nextjs/utils.test.ts (1)
895
- [?25l ✓ test/integration/sdk.test.tsx (2)
859
+ [?25l ✓ test/integration/sdk.test.tsx (2)
896
860
  ✓ test/unit/nextjs/config.test.ts (10)
897
861
  ✓ test/unit/server/login.test.ts (6)
898
862
  ✓ test/unit/logger.test.ts (11)
@@ -907,11 +871,10 @@ defaultServerSecure: false
907
871
  ✓ test/unit/utils.test.ts (4)
908
872
  · test/unit/react/components/SignInButton.test.tsx (2)
909
873
  · test/unit/react/components/SignOutButton.test.tsx (2)
910
- ✓ test/unit/nextjs/getUser.test.ts (1)
874
+ · test/unit/nextjs/getUser.test.ts (1)
911
875
  ✓ test/unit/shared/UserSession.test.ts (2)
912
876
  ✓ test/unit/nextjs/utils.test.ts (1)
913
- · test/unit/publicApi/apiSnapshot.test.ts (1)
914
- [?25l ✓ test/integration/sdk.test.tsx (2)
877
+ [?25l ✓ test/integration/sdk.test.tsx (2)
915
878
  ✓ test/unit/nextjs/config.test.ts (10)
916
879
  ✓ test/unit/server/login.test.ts (6)
917
880
  ✓ test/unit/logger.test.ts (11)
@@ -926,9 +889,9 @@ defaultServerSecure: false
926
889
  ✓ test/unit/utils.test.ts (4)
927
890
  · test/unit/react/components/SignInButton.test.tsx (2)
928
891
  · test/unit/react/components/SignOutButton.test.tsx (2)
929
- ✓ test/unit/nextjs/getUser.test.ts (1)
930
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
892
+ · test/unit/nextjs/getUser.test.ts (1)
931
893
  ✓ test/unit/shared/UserSession.test.ts (2)
894
+ · test/unit/nextjs/NextAuthProvider.test.tsx (1)
932
895
  ✓ test/unit/nextjs/utils.test.ts (1)
933
896
  · test/unit/publicApi/apiSnapshot.test.ts (1)
934
897
  [?25l ✓ test/integration/sdk.test.tsx (2)
@@ -947,10 +910,10 @@ defaultServerSecure: false
947
910
  · test/unit/react/components/SignInButton.test.tsx (2)
948
911
  · test/unit/react/components/SignOutButton.test.tsx (2)
949
912
  ✓ test/unit/nextjs/getUser.test.ts (1)
950
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
951
913
  ✓ test/unit/shared/UserSession.test.ts (2)
914
+ · test/unit/nextjs/NextAuthProvider.test.tsx (1)
952
915
  ✓ test/unit/nextjs/utils.test.ts (1)
953
- ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
916
+ · test/unit/publicApi/apiSnapshot.test.ts (1)
954
917
  stdout | test/unit/react/components/SignInButton.test.tsx > SignInButton Component > should render a SignInButton component
955
918
  BrowserAuthenticationService constructor {
956
919
  config: {
@@ -973,7 +936,7 @@ BrowserAuthenticationInitiator constructor {
973
936
  oauthServer: 'https://auth.civic.com/oauth',
974
937
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
975
938
  displayMode: 'iframe',
976
- state: 'eyJ1dWlkIjoiMjk5MGE1ZmMtM2JiNS00NjU3LWE1N2EtZDc3YzQ2NTliNGRjIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
939
+ state: 'eyJ1dWlkIjoiYzY0MjhjZWItY2NjYi00ZWFjLTg1NTAtNmE5NjFmNDU1OWI1IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
977
940
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
978
941
  }
979
942
  handleIframeLoad
@@ -1021,7 +984,7 @@ BrowserAuthenticationInitiator constructor {
1021
984
  oauthServer: 'https://auth.civic.com/oauth',
1022
985
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1023
986
  displayMode: 'iframe',
1024
- state: 'eyJ1dWlkIjoiMmFjMWZmNWItNzhmZi00MzFiLTgyM2EtNDFhNjE5YjY5NGQ4IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
987
+ state: 'eyJ1dWlkIjoiODNlOTcxMWItZWIwNi00OGE0LWI2OTctMDJjNWQ5MjE0NDJlIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1025
988
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1026
989
  }
1027
990
  handleIframeLoad
@@ -1069,7 +1032,7 @@ BrowserAuthenticationInitiator constructor {
1069
1032
  oauthServer: 'https://auth.civic.com/oauth',
1070
1033
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1071
1034
  displayMode: 'iframe',
1072
- state: 'eyJ1dWlkIjoiZjE2N2IwMTYtN2QzNC00MDU0LTk1MTctNWIwYjdlYjZjYjdiIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1035
+ state: 'eyJ1dWlkIjoiZWY3ZDIwYzEtNWUwOS00NDVkLWJkMDAtNjkzYTA5MTQwZWJlIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1073
1036
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1074
1037
  }
1075
1038
  handleIframeLoad
@@ -1117,7 +1080,7 @@ BrowserAuthenticationInitiator constructor {
1117
1080
  oauthServer: 'https://auth.civic.com/oauth',
1118
1081
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1119
1082
  displayMode: 'iframe',
1120
- state: 'eyJ1dWlkIjoiNDgzYjU1MWUtZjhjZi00MzVlLTk4YjAtMmViNDczZGJhM2RlIiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1083
+ state: 'eyJ1dWlkIjoiM2NlYjUwZWItN2RlOS00ZDhkLWJkYzMtY2I4YzkyOGQ1NzY4IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1121
1084
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1122
1085
  }
1123
1086
  handleIframeLoad
@@ -1159,11 +1122,11 @@ This ensures that you're testing the behavior the user would see in the browser.
1159
1122
  · test/unit/react/components/SignInButton.test.tsx (2)
1160
1123
  · test/unit/react/components/SignOutButton.test.tsx (2)
1161
1124
  ✓ test/unit/nextjs/getUser.test.ts (1)
1162
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
1163
1125
  ✓ test/unit/shared/UserSession.test.ts (2)
1126
+ · test/unit/nextjs/NextAuthProvider.test.tsx (1)
1164
1127
  ✓ test/unit/nextjs/utils.test.ts (1)
1165
1128
  ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
1166
- stdout | test/unit/nextjs/NextAuthProvider.test.tsx > CivicNextAuthProvider > should call resolveAuthConfig with no arguments
1129
+ [?25lstdout | test/unit/nextjs/NextAuthProvider.test.tsx > CivicNextAuthProvider > should call resolveAuthConfig with no arguments
1167
1130
  BrowserAuthenticationService constructor {
1168
1131
  config: {
1169
1132
  clientId: 'test-client-id',
@@ -1185,7 +1148,7 @@ BrowserAuthenticationInitiator constructor {
1185
1148
  oauthServer: 'https://example.com',
1186
1149
  scopes: [ 'openid', 'profile', 'email', 'forwardedTokens', 'offline_access' ],
1187
1150
  displayMode: 'iframe',
1188
- state: 'eyJ1dWlkIjoiYmVkMjdiYjMtZjVjNy00NGI4LWI5M2QtYzQ0OWQxMzQ0M2I3IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1151
+ state: 'eyJ1dWlkIjoiZTg3OWE5NmEtOWVhOS00MDhmLWIyMDMtNzMwMDdhZGJkNmU4IiwiZGlzcGxheU1vZGUiOiJpZnJhbWUifQ==',
1189
1152
  pkceConsumer: BrowserPublicClientPKCEProducer { storage: LocalStorageAdapter {} }
1190
1153
  }
1191
1154
  handleIframeLoad
@@ -1213,26 +1176,6 @@ This ensures that you're testing the behavior the user would see in the browser.
1213
1176
  at CivicNextAuthProvider (/Users/flippie/civic/repos/civic-auth/packages/civic-auth-client/src/nextjs/providers/NextAuthProvider.tsx:75:3)
1214
1177
 
1215
1178
  [?25l ✓ test/integration/sdk.test.tsx (2)
1216
- ✓ test/unit/nextjs/config.test.ts (10)
1217
- ✓ test/unit/server/login.test.ts (6)
1218
- ✓ test/unit/logger.test.ts (11)
1219
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1220
- ✓ test/unit/nextjs/middleware.test.ts (7)
1221
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1222
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1223
- ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1224
- ✓ test/unit/lib/oauth.test.ts (6)
1225
- ✓ test/unit/shared/storage.test.ts (3)
1226
- ✓ test/unit/server/session.test.ts (3)
1227
- ✓ test/unit/utils.test.ts (4)
1228
- · test/unit/react/components/SignInButton.test.tsx (2)
1229
- · test/unit/react/components/SignOutButton.test.tsx (2)
1230
- ✓ test/unit/nextjs/getUser.test.ts (1)
1231
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
1232
- ✓ test/unit/shared/UserSession.test.ts (2)
1233
- ✓ test/unit/nextjs/utils.test.ts (1)
1234
- ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
1235
- [?25l ✓ test/integration/sdk.test.tsx (2)
1236
1179
  ✓ test/unit/nextjs/config.test.ts (10)
1237
1180
  ✓ test/unit/server/login.test.ts (6)
1238
1181
  ✓ test/unit/logger.test.ts (11)
@@ -1248,11 +1191,11 @@ This ensures that you're testing the behavior the user would see in the browser.
1248
1191
  ✓ test/unit/react/components/SignInButton.test.tsx (2)
1249
1192
  ✓ test/unit/react/components/SignOutButton.test.tsx (2)
1250
1193
  ✓ test/unit/nextjs/getUser.test.ts (1)
1251
- · test/unit/nextjs/NextAuthProvider.test.tsx (1)
1252
1194
  ✓ test/unit/shared/UserSession.test.ts (2)
1195
+ · test/unit/nextjs/NextAuthProvider.test.tsx (1)
1253
1196
  ✓ test/unit/nextjs/utils.test.ts (1)
1254
1197
  ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
1255
- [?25l ✓ test/integration/sdk.test.tsx (2)
1198
+ [?25l[?25l ✓ test/integration/sdk.test.tsx (2)
1256
1199
  ✓ test/unit/nextjs/config.test.ts (10)
1257
1200
  ✓ test/unit/server/login.test.ts (6)
1258
1201
  ✓ test/unit/logger.test.ts (11)
@@ -1268,156 +1211,154 @@ This ensures that you're testing the behavior the user would see in the browser.
1268
1211
  ✓ test/unit/react/components/SignInButton.test.tsx (2)
1269
1212
  ✓ test/unit/react/components/SignOutButton.test.tsx (2)
1270
1213
  ✓ test/unit/nextjs/getUser.test.ts (1)
1271
- ✓ test/unit/nextjs/NextAuthProvider.test.tsx (1)
1272
1214
  ✓ test/unit/shared/UserSession.test.ts (2)
1215
+ ✓ test/unit/nextjs/NextAuthProvider.test.tsx (1)
1273
1216
  ✓ test/unit/nextjs/utils.test.ts (1)
1274
1217
  ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
1275
1218
  [?25l[?25l[?25l ✓ test/integration/sdk.test.tsx (2)
1276
1219
  ✓ test/unit/logger.test.ts (11)
1277
1220
  ✓ test/unit/utils.test.ts (4)
1278
1221
  ✓ test/unit/lib/oauth.test.ts (6)
1279
- ✓ test/unit/nextjs/NextAuthProvider.test.tsx (1)
1280
- ✓ test/unit/nextjs/config.test.ts (10)
1281
- ✓ test/unit/nextjs/getUser.test.ts (1)
1282
- ✓ test/unit/nextjs/middleware.test.ts (7)
1283
- ✓ test/unit/nextjs/utils.test.ts (1)
1284
1222
  ✓ test/unit/publicApi/apiSnapshot.test.ts (1)
1285
- ✓ test/unit/services/AuthenticationService.test.ts (6)
1286
- ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1287
1223
  ✓ test/unit/server/login.test.ts (6)
1288
1224
  ✓ test/unit/server/session.test.ts (3)
1225
+ ✓ test/unit/services/AuthenticationService.test.ts (6)
1226
+ ✓ test/unit/services/ServerAuthenticationResolver.test.ts (5)
1289
1227
  ✓ test/unit/shared/GenericAuthenticationRefresher.test.ts (3)
1290
1228
  ✓ test/unit/shared/UserSession.test.ts (2)
1291
1229
  ✓ test/unit/shared/storage.test.ts (3)
1230
+ ✓ test/unit/nextjs/NextAuthProvider.test.tsx (1)
1231
+ ✓ test/unit/nextjs/config.test.ts (10)
1232
+ ✓ test/unit/nextjs/getUser.test.ts (1)
1233
+ ✓ test/unit/nextjs/middleware.test.ts (7)
1234
+ ✓ test/unit/nextjs/utils.test.ts (1)
1235
+ ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1292
1236
  ✓ test/unit/react/components/SignInButton.test.tsx (2)
1293
1237
  ✓ test/unit/react/components/SignOutButton.test.tsx (2)
1294
- ✓ test/unit/shared/components/CivicAuthIframeContainer.test.tsx (3)
1295
1238
 
1296
1239
   Test Files  20 passed (20)
1297
1240
   Tests  79 passed (79)
1298
-  Start at  14:45:32
1299
-  Duration  2.01s (transform 741ms, setup 0ms, collect 3.29s, tests 501ms, environment 11.02s, prepare 1.76s)
1241
+  Start at  16:36:04
1242
+  Duration  2.66s (transform 766ms, setup 0ms, collect 4.33s, tests 557ms, environment 14.37s, prepare 2.13s)
1300
1243
 
1301
1244
   % Coverage report from v8
1302
- ----------------------------------|---------|----------|---------|---------|-------------------
1303
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
1304
- ----------------------------------|---------|----------|---------|---------|-------------------
1305
- All files  |  80.93 |  85.77 |  70.34 |  80.93 |  
1306
-  src  |  100 |  100 |  100 |  100 |  
1307
-  config.ts  |  100 |  100 |  100 |  100 |  
1308
-  constants.ts  |  100 |  100 |  100 |  100 |  
1309
- index.ts | 0 | 0 | 0 | 0 |  
1310
- types.ts | 0 | 0 | 0 | 0 |  
1311
-  utils.ts  |  100 |  100 |  100 |  100 |  
1312
-  src/browser  |  100 |  100 |  100 |  100 |  
1313
-  storage.ts  |  100 |  100 |  100 |  100 |  
1314
-  src/lib  |  70.87 |  81.48 |  83.33 |  70.87 |  
1315
-  cookies.ts  |  4.16 |  100 |  0 |  4.16 | 2-27 
1316
-  jwt.ts  |  100 |  100 |  100 |  100 |  
1317
-  logger.ts  |  100 |  100 |  100 |  100 |  
1318
-  oauth.ts  |  83.63 |  81.81 |  83.33 |  83.63 | 6,68-75 
1319
-  postMessage.ts  |  5.55 |  100 |  0 |  5.55 | 4-20 
1320
-  windowUtil.ts  |  82.6 |  57.14 |  100 |  82.6 | 6-7,11-12 
1321
-  src/nextjs  |  47.17 |  86.04 |  40.74 |  47.17 |  
1322
-  GetUser.ts  |  100 |  33.33 |  100 |  100 | 14-20 
1323
-  config.ts  |  99.2 |  81.25 |  100 |  99.2 | 126 
1324
-  cookies.ts  |  19.09 |  100 |  10 |  19.09 | ...52-153,156-157
1325
-  index.ts  |  100 |  100 |  100 |  100 |  
1326
-  middleware.ts  |  100 |  95.45 |  100 |  100 | 49 
1327
-  routeHandler.ts  |  4.23 |  100 |  0 |  4.23 | ...20-255,271-301
1328
-  utils.ts  |  100 |  100 |  100 |  100 |  
1329
-  src/nextjs/client  |  0 |  0 |  0 |  0 |  
1330
-  index.ts  |  0 |  0 |  0 |  0 | 1 
1331
-  src/nextjs/hooks  |  11.29 |  100 |  0 |  11.29 |  
1332
-  index.ts  |  100 |  100 |  100 |  100 |  
1333
-  useTokenCookie.ts  |  9.67 |  100 |  0 |  9.67 | 9-14,17-41 
1334
-  useUserCookie.ts  |  10 |  100 |  0 |  10 | 10-14,17-41 
1335
-  src/nextjs/middleware  |  100 |  100 |  100 |  100 |  
1336
-  index.ts  |  100 |  100 |  100 |  100 |  
1337
-  src/nextjs/providers  |  87.93 |  71.42 |  66.66 |  87.93 |  
1338
-  NextAuthProvider.tsx  |  87.93 |  71.42 |  66.66 |  87.93 | 47-53 
1339
-  src/reactjs  |  100 |  100 |  100 |  100 |  
1340
-  index.ts  |  100 |  100 |  100 |  100 |  
1341
-  src/reactjs/components  |  22.1 |  100 |  57.14 |  22.1 |  
1342
-  SignInButton.tsx  |  100 |  100 |  100 |  100 |  
1343
-  SignOutButton.tsx  |  100 |  100 |  100 |  100 |  
1344
-  UserButton.tsx  |  2.63 |  100 |  0 |  2.63 | 7-20,24-37,41-189
1345
-  index.ts  |  100 |  100 |  100 |  100 |  
1346
-  src/reactjs/hooks  |  44.44 |  33.33 |  50 |  44.44 |  
1347
-  index.ts  |  100 |  100 |  100 |  100 |  
1348
-  useAuth.ts  |  0 |  0 |  0 |  0 | 1-13 
1349
-  useUser.ts  |  77.77 |  50 |  100 |  77.77 | 14-15 
1350
-  src/reactjs/providers  |  100 |  100 |  100 |  100 |  
1351
-  index.ts  |  100 |  100 |  100 |  100 |  
1352
-  src/server  |  86.04 |  73.68 |  76.92 |  86.04 |  
1353
-  ServerAuthenticationResolver.ts |  97.4 |  88.88 |  85.71 |  97.4 | 36-37 
1354
- config.ts | 0 | 0 | 0 | 0 |  
1355
-  index.ts  |  0 |  0 |  0 |  0 | 1 
1356
-  login.ts  |  100 |  71.42 |  100 |  100 | 23,52 
1357
-  refresh.ts  |  0 |  0 |  0 |  0 | 1-23 
1358
-  src/services  |  69.81 |  72.72 |  84 |  69.81 |  
1359
-  AuthenticationService.ts  |  69.31 |  67.85 |  88.88 |  69.31 | ...73-274,305-323
1360
-  PKCE.ts  |  77.77 |  100 |  83.33 |  77.77 | 12-17 
1361
-  types.ts  |  50 |  100 |  0 |  50 | 51-53 
1362
-  src/shared/components  |  93.36 |  86.36 |  71.42 |  93.36 |  
1363
-  CivicAuthIframe.tsx  |  100 |  100 |  100 |  100 |  
1364
-  CivicAuthIframeContainer.tsx  |  90.2 |  84.21 |  60 |  90.2 | ...44-147,162-163
1365
-  CloseIcon.tsx  |  100 |  100 |  100 |  100 |  
1366
-  LoadingIcon.tsx  |  100 |  100 |  100 |  100 |  
1367
-  src/shared/hooks  |  75.6 |  50 |  100 |  75.6 |  
1368
-  index.ts  |  100 |  100 |  100 |  100 |  
1369
-  useAuth.ts  |  75 |  50 |  100 |  75 | 9-10 
1370
-  useConfig.ts  |  75 |  50 |  100 |  75 | 9-10 
1371
-  useIframe.ts  |  75 |  50 |  100 |  75 | 9-10 
1372
-  useSession.ts  |  75 |  50 |  100 |  75 | 9-10 
1373
-  useToken.ts  |  75 |  50 |  100 |  75 | 9-10 
1374
-  src/shared/lib  |  92.85 |  86 |  90.9 |  92.85 |  
1375
-  ...icAuthenticationRefresher.ts |  100 |  85.71 |  100 |  100 | 60 
1376
-  UserSession.ts  |  100 |  87.5 |  100 |  100 | 22 
1377
-  session.ts  |  100 |  100 |  100 |  100 |  
1378
-  storage.ts  |  100 |  100 |  100 |  100 |  
1379
-  types.ts  |  100 |  100 |  100 |  100 |  
1380
-  util.ts  |  88.15 |  75 |  81.81 |  88.15 | ...33-137,162-164
1381
-  src/shared/providers  |  85.36 |  77.01 |  61.11 |  85.36 |  
1382
-  AuthContext.tsx  |  100 |  100 |  100 |  100 |  
1383
-  AuthProvider.tsx  |  80.06 |  72.13 |  50 |  80.06 | ...29-330,375-379
1384
-  CivicAuthProvider.tsx  |  100 |  100 |  100 |  100 |  
1385
-  ConfigProvider.tsx  |  100 |  100 |  100 |  100 |  
1386
-  IframeProvider.tsx  |  100 |  100 |  50 |  100 |  
1387
-  SessionProvider.tsx  |  100 |  100 |  100 |  100 |  
1388
-  TokenProvider.tsx  |  88.88 |  84.61 |  33.33 |  88.88 | 30-31,34-35,49 
1389
-  UserProvider.tsx  |  95.45 |  87.5 |  100 |  95.45 | 42-43 
1390
-  test/integration  |  98.96 |  94.11 |  100 |  98.96 |  
1391
-  sdk.test.tsx  |  98.96 |  94.11 |  100 |  98.96 | 31-32 
1392
-  test/support  |  100 |  100 |  100 |  100 |  
1393
-  fixtures.ts  |  100 |  100 |  100 |  100 |  
1394
-  test/unit  |  100 |  100 |  100 |  100 |  
1395
-  logger.test.ts  |  100 |  100 |  100 |  100 |  
1396
-  utils.test.ts  |  100 |  100 |  100 |  100 |  
1397
-  test/unit/lib  |  100 |  100 |  100 |  100 |  
1398
-  oauth.test.ts  |  100 |  100 |  100 |  100 |  
1399
-  test/unit/nextjs  |  99.7 |  97.67 |  100 |  99.7 |  
1400
-  NextAuthProvider.test.tsx  |  100 |  100 |  100 |  100 |  
1401
-  config.test.ts  |  100 |  100 |  100 |  100 |  
1402
-  getUser.test.ts  |  97.29 |  87.5 |  100 |  97.29 | 31 
1403
-  middleware.test.ts  |  100 |  100 |  100 |  100 |  
1404
-  utils.test.ts  |  100 |  100 |  100 |  100 |  
1405
-  test/unit/publicApi  |  100 |  100 |  100 |  100 |  
1406
-  apiSnapshot.test.ts  |  100 |  100 |  100 |  100 |  
1407
-  test/unit/react/components  |  100 |  100 |  0 |  100 |  
1408
-  SignInButton.test.tsx  |  100 |  100 |  0 |  100 |  
1409
-  SignOutButton.test.tsx  |  100 |  100 |  0 |  100 |  
1410
-  test/unit/server  |  97.7 |  76.19 |  33.33 |  97.7 |  
1411
-  login.test.ts  |  97.12 |  68.75 |  33.33 |  97.12 | 23-24,27-28 
1412
-  session.test.ts  |  100 |  100 |  100 |  100 |  
1413
-  test/unit/services  |  100 |  100 |  100 |  100 |  
1414
-  AuthenticationService.test.ts  |  100 |  100 |  100 |  100 |  
1415
-  ...thenticationResolver.test.ts |  100 |  100 |  100 |  100 |  
1416
-  test/unit/shared  |  100 |  100 |  100 |  100 |  
1417
-  ...henticationRefresher.test.ts |  100 |  100 |  100 |  100 |  
1418
-  UserSession.test.ts  |  100 |  100 |  100 |  100 |  
1419
-  storage.test.ts  |  100 |  100 |  100 |  100 |  
1420
-  test/unit/shared/components  |  100 |  100 |  100 |  100 |  
1421
-  ...AuthIframeContainer.test.tsx |  100 |  100 |  100 |  100 |  
1422
- ----------------------------------|---------|----------|---------|---------|-------------------
1245
+ --------------------------------------|---------|----------|---------|---------|-------------------
1246
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
1247
+ --------------------------------------|---------|----------|---------|---------|-------------------
1248
+ All files  |  80.49 |  85.94 |  70.76 |  80.49 |  
1249
+  src  |  100 |  100 |  100 |  100 |  
1250
+  config.ts  |  100 |  100 |  100 |  100 |  
1251
+  constants.ts  |  100 |  100 |  100 |  100 |  
1252
+ index.ts | 0 | 0 | 0 | 0 |  
1253
+ types.ts | 0 | 0 | 0 | 0 |  
1254
+  utils.ts  |  100 |  100 |  100 |  100 |  
1255
+  src/browser  |  100 |  100 |  100 |  100 |  
1256
+  storage.ts  |  100 |  100 |  100 |  100 |  
1257
+  src/lib  |  70.87 |  81.48 |  83.33 |  70.87 |  
1258
+  cookies.ts  |  4.16 |  100 |  0 |  4.16 | 2-27 
1259
+  jwt.ts  |  100 |  100 |  100 |  100 |  
1260
+  logger.ts  |  100 |  100 |  100 |  100 |  
1261
+  oauth.ts  |  83.63 |  81.81 |  83.33 |  83.63 | 6,68-75 
1262
+  postMessage.ts  |  5.55 |  100 |  0 |  5.55 | 4-20 
1263
+  windowUtil.ts  |  82.6 |  57.14 |  100 |  82.6 | 6-7,11-12 
1264
+  src/nextjs  |  47.17 |  86.04 |  40.74 |  47.17 |  
1265
+  GetUser.ts  |  100 |  33.33 |  100 |  100 | 14-20 
1266
+  config.ts  |  99.2 |  81.25 |  100 |  99.2 | 126 
1267
+  cookies.ts  |  19.09 |  100 |  10 |  19.09 | ...52-153,156-157
1268
+  index.ts  |  100 |  100 |  100 |  100 |  
1269
+  middleware.ts  |  100 |  95.45 |  100 |  100 | 49 
1270
+  routeHandler.ts  |  4.23 |  100 |  0 |  4.23 | ...20-255,271-301
1271
+  utils.ts  |  100 |  100 |  100 |  100 |  
1272
+  src/nextjs/hooks  |  11.29 |  100 |  0 |  11.29 |  
1273
+  index.ts  |  100 |  100 |  100 |  100 |  
1274
+  useTokenCookie.ts  |  9.67 |  100 |  0 |  9.67 | 9-14,17-41 
1275
+  useUserCookie.ts  |  10 |  100 |  0 |  10 | 10-14,17-41 
1276
+  src/nextjs/middleware  |  100 |  100 |  100 |  100 |  
1277
+  index.ts  |  100 |  100 |  100 |  100 |  
1278
+  src/nextjs/providers  |  87.93 |  71.42 |  66.66 |  87.93 |  
1279
+  NextAuthProvider.tsx  |  87.93 |  71.42 |  66.66 |  87.93 | 47-53 
1280
+  src/reactjs  |  100 |  100 |  100 |  100 |  
1281
+  index.ts  |  100 |  100 |  100 |  100 |  
1282
+  src/reactjs/components  |  19.81 |  100 |  57.14 |  19.81 |  
1283
+  SignInButton.tsx  |  100 |  100 |  100 |  100 |  
1284
+  SignOutButton.tsx  |  100 |  100 |  100 |  100 |  
1285
+  UserButton.tsx  |  2.29 |  100 |  0 |  2.29 | 7-20,24-37,41-213
1286
+  index.ts  |  100 |  100 |  100 |  100 |  
1287
+  src/reactjs/hooks  |  44.44 |  33.33 |  50 |  44.44 |  
1288
+  index.ts  |  100 |  100 |  100 |  100 |  
1289
+  useAuth.ts  |  0 |  0 |  0 |  0 | 1-13 
1290
+  useUser.ts  |  77.77 |  50 |  100 |  77.77 | 14-15 
1291
+  src/reactjs/providers  |  100 |  100 |  100 |  100 |  
1292
+  index.ts  |  100 |  100 |  100 |  100 |  
1293
+  src/server  |  86.04 |  73.68 |  76.92 |  86.04 |  
1294
+  ServerAuthenticationResolver.ts  |  97.4 |  88.88 |  85.71 |  97.4 | 36-37 
1295
+ config.ts | 0 | 0 | 0 | 0 |  
1296
+  index.ts  |  0 |  0 |  0 |  0 | 1 
1297
+  login.ts  |  100 |  71.42 |  100 |  100 | 23,52 
1298
+  refresh.ts  |  0 |  0 |  0 |  0 | 1-23 
1299
+  src/services  |  69.81 |  72.72 |  84 |  69.81 |  
1300
+  AuthenticationService.ts  |  69.31 |  67.85 |  88.88 |  69.31 | ...73-274,305-323
1301
+  PKCE.ts  |  77.77 |  100 |  83.33 |  77.77 | 12-17 
1302
+  types.ts  |  50 |  100 |  0 |  50 | 51-53 
1303
+  src/shared/components  |  93.36 |  86.36 |  71.42 |  93.36 |  
1304
+  CivicAuthIframe.tsx  |  100 |  100 |  100 |  100 |  
1305
+  CivicAuthIframeContainer.tsx  |  90.2 |  84.21 |  60 |  90.2 | ...44-147,162-163
1306
+  CloseIcon.tsx  |  100 |  100 |  100 |  100 |  
1307
+  LoadingIcon.tsx  |  100 |  100 |  100 |  100 |  
1308
+  src/shared/hooks  |  75.6 |  50 |  100 |  75.6 |  
1309
+  index.ts  |  100 |  100 |  100 |  100 |  
1310
+  useAuth.ts  |  75 |  50 |  100 |  75 | 9-10 
1311
+  useConfig.ts  |  75 |  50 |  100 |  75 | 9-10 
1312
+  useIframe.ts  |  75 |  50 |  100 |  75 | 9-10 
1313
+  useSession.ts  |  75 |  50 |  100 |  75 | 9-10 
1314
+  useToken.ts  |  75 |  50 |  100 |  75 | 9-10 
1315
+  src/shared/lib  |  92.85 |  86 |  90.9 |  92.85 |  
1316
+  GenericAuthenticationRefresher.ts  |  100 |  85.71 |  100 |  100 | 60 
1317
+  UserSession.ts  |  100 |  87.5 |  100 |  100 | 22 
1318
+  session.ts  |  100 |  100 |  100 |  100 |  
1319
+  storage.ts  |  100 |  100 |  100 |  100 |  
1320
+  types.ts  |  100 |  100 |  100 |  100 |  
1321
+  util.ts  |  88.15 |  75 |  81.81 |  88.15 | ...33-137,162-164
1322
+  src/shared/providers  |  85.36 |  77.01 |  61.11 |  85.36 |  
1323
+  AuthContext.tsx  |  100 |  100 |  100 |  100 |  
1324
+  AuthProvider.tsx  |  80.06 |  72.13 |  50 |  80.06 | ...29-330,375-379
1325
+  CivicAuthProvider.tsx  |  100 |  100 |  100 |  100 |  
1326
+  ConfigProvider.tsx  |  100 |  100 |  100 |  100 |  
1327
+  IframeProvider.tsx  |  100 |  100 |  50 |  100 |  
1328
+  SessionProvider.tsx  |  100 |  100 |  100 |  100 |  
1329
+  TokenProvider.tsx  |  88.88 |  84.61 |  33.33 |  88.88 | 30-31,34-35,49 
1330
+  UserProvider.tsx  |  95.45 |  87.5 |  100 |  95.45 | 42-43 
1331
+  test/integration  |  98.96 |  94.11 |  100 |  98.96 |  
1332
+  sdk.test.tsx  |  98.96 |  94.11 |  100 |  98.96 | 31-32 
1333
+  test/support  |  100 |  100 |  100 |  100 |  
1334
+  fixtures.ts  |  100 |  100 |  100 |  100 |  
1335
+  test/unit  |  100 |  100 |  100 |  100 |  
1336
+  logger.test.ts  |  100 |  100 |  100 |  100 |  
1337
+  utils.test.ts  |  100 |  100 |  100 |  100 |  
1338
+  test/unit/lib  |  100 |  100 |  100 |  100 |  
1339
+  oauth.test.ts  |  100 |  100 |  100 |  100 |  
1340
+  test/unit/nextjs  |  99.7 |  97.67 |  100 |  99.7 |  
1341
+  NextAuthProvider.test.tsx  |  100 |  100 |  100 |  100 |  
1342
+  config.test.ts  |  100 |  100 |  100 |  100 |  
1343
+  getUser.test.ts  |  97.29 |  87.5 |  100 |  97.29 | 31 
1344
+  middleware.test.ts  |  100 |  100 |  100 |  100 |  
1345
+  utils.test.ts  |  100 |  100 |  100 |  100 |  
1346
+  test/unit/publicApi  |  100 |  100 |  100 |  100 |  
1347
+  apiSnapshot.test.ts  |  100 |  100 |  100 |  100 |  
1348
+  test/unit/react/components  |  100 |  100 |  0 |  100 |  
1349
+  SignInButton.test.tsx  |  100 |  100 |  0 |  100 |  
1350
+  SignOutButton.test.tsx  |  100 |  100 |  0 |  100 |  
1351
+  test/unit/server  |  97.7 |  76.19 |  33.33 |  97.7 |  
1352
+  login.test.ts  |  97.12 |  68.75 |  33.33 |  97.12 | 23-24,27-28 
1353
+  session.test.ts  |  100 |  100 |  100 |  100 |  
1354
+  test/unit/services  |  100 |  100 |  100 |  100 |  
1355
+  AuthenticationService.test.ts  |  100 |  100 |  100 |  100 |  
1356
+  ...erAuthenticationResolver.test.ts |  100 |  100 |  100 |  100 |  
1357
+  test/unit/shared  |  100 |  100 |  100 |  100 |  
1358
+  ...cAuthenticationRefresher.test.ts |  100 |  100 |  100 |  100 |  
1359
+  UserSession.test.ts  |  100 |  100 |  100 |  100 |  
1360
+  storage.test.ts  |  100 |  100 |  100 |  100 |  
1361
+  test/unit/shared/components  |  100 |  100 |  100 |  100 |  
1362
+  CivicAuthIframeContainer.test.tsx  |  100 |  100 |  100 |  100 |  
1363
+ --------------------------------------|---------|----------|---------|---------|-------------------
1423
1364
  [?25h[?25h