clear http only cookies on logout #328
Annotations
10 errors
|
tests/unit/auth.test.js > Auth Module > loginViaEmailPassword() > should handle authentication errors and logout:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > loginViaEmailPassword() > should login with turnstile token when provided:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > loginViaEmailPassword() > should login successfully with email and password:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > setToken() > should handle localStorage errors gracefully:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > setToken() > should handle empty token gracefully:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > setToken() > should not save token to localStorage when not requested:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > setToken() > should save token to localStorage when requested:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > setToken() > should set token in axios headers:
src/modules/analytics.ts#L189
TypeError: window.addEventListener is not a function
❯ Module.createAnalyticsModule src/modules/analytics.ts:189:12
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > logout() > should reload page when no redirect URL is provided:
src/modules/analytics.ts#L258
ReferenceError: document is not defined
❯ trackInitializationEvent src/modules/analytics.ts:258:17
❯ Module.createAnalyticsModule src/modules/analytics.ts:186:3
❯ Module.createClient src/client.ts:161:16
❯ tests/unit/auth.test.js:13:14
|
|
tests/unit/auth.test.js > Auth Module > logout() > should redirect to specified URL after logout:
tests/unit/auth.test.js#L324
AssertionError: expected 'https://api.base44.com/api/apps/test-…' to be 'https://example.com/logout-success' // Object.is equality
- Expected
+ Received
- https://example.com/logout-success
+ https://api.base44.com/api/apps/test-app-id/auth/logout?from_url=https%3A%2F%2Fexample.com%2Flogout-success
❯ tests/unit/auth.test.js:324:33
|