clear http only cookies on logout #334
Annotations
3 errors
|
test
Process completed with exit code 1.
|
|
tests/unit/auth.test.js > Auth Module > logout() > should redirect to logout endpoint when no redirect URL is provided:
tests/unit/auth.test.js#L358
AssertionError: expected 'undefined/api/apps/test-app-id/auth/l…' to be 'https://api.base44.com/api/apps/test-…' // Object.is equality
- Expected
+ Received
- https://api.base44.com/api/apps/test-app-id/auth/logout?from_url=https%3A%2F%2Fexample.com%2Fcurrent-page
+ undefined/api/apps/test-app-id/auth/logout?from_url=https%3A%2F%2Fexample.com%2Fcurrent-page
❯ tests/unit/auth.test.js:358:33
|
|
tests/unit/auth.test.js > Auth Module > logout() > should redirect to specified URL after logout:
tests/unit/auth.test.js#L339
AssertionError: expected 'undefined/api/apps/test-app-id/auth/l…' to be 'https://api.base44.com/api/apps/test-…' // Object.is equality
- Expected
+ Received
- https://api.base44.com/api/apps/test-app-id/auth/logout?from_url=https%3A%2F%2Fexample.com%2Flogout-success
+ undefined/api/apps/test-app-id/auth/logout?from_url=https%3A%2F%2Fexample.com%2Flogout-success
❯ tests/unit/auth.test.js:339:33
|