Wappler Version : 7.4.1
Operating System : Windows 11
Server Model: NodeJs
Database Type: Postgres
Hosting Type: Local Server and Docker (appears in both)
Expected behavior
I have setup a Signout endpoint, which just calls a signout action from my established Oauth Cognito security provider. The signin works great, and is consistent. I expect hitting my logout request to log me out of the app and clear my session with AWS Cognito. I have set this up following the guide from the wappler documentation, which makes this seem like this should just work. It's also confusing because there aren't really any options to select with this action, other than the security provider to log out of.
Actual behavior
What actually happens?
Whenever I run a request on my signout endpoint, I get an error about an argument name is invalid:
2025-11-12T13:31:20.959Z server-connect:router Serving serverConnect /api/cognitoSignOut
TypeError: argument name is invalid
at Object.serialize (C:\Users\user\source\repos\MyProject\node_modules\express\node_modules\cookie\index.js:192:11)
at res.cookie (C:\Users\user\source\repos\MyProject\node_modules\express\lib\response.js:892:36)
at ServerResponse.clearCookie (C:\Users\user\source\repos\MyProject\node_modules\express\lib\response.js:835:15)
at App.removeCookie (C:\Users\user\source\repos\MyProject\lib\core\app.js:159:16)
at DatabaseProvider.logout (C:\Users\user\source\repos\MyProject\lib\auth\provider.js:88:18)
at App.logout (C:\Users\user\source\repos\MyProject\lib\modules\auth.js:48:25)
at async App._exec (C:\Users\user\source\repos\MyProject\lib\core\app.js:752:22)
at async App._exec (C:\Users\user\source\repos\MyProject\lib\core\app.js:716:9)
at async App.exec (C:\Users\user\source\repos\MyProject\lib\core\app.js:682:5)
at async App.define (C:\Users\user\source\repos\MyProject\lib\core\app.js:664:5)
2025-11-12T13:31:20.962Z server-connect:app Executing action step identify
2025-11-12T13:31:20.962Z server-connect:app options: { provider: 'specialSecurityProvider/cognitoSecurity' }
2025-11-12T13:31:20.963Z server-connect:output identity: 'My-Unique-User-Id'
2025-11-12T13:31:20.964Z server-connect:app Executing action step logout
2025-11-12T13:31:20.964Z server-connect:app options: { provider: 'specialSecurityProvider/cognitoSecurity' }
2025-11-12T13:31:20.965Z server-connect:output Error at logout: TypeError: argument name is invalid
at Object.serialize (C:\Users\user\source\repos\MyProject\node_modules\express\node_modules\cookie\index.js:192:11)
at res.cookie (C:\Users\user\source\repos\MyProject\node_modules\express\lib\response.js:892:36)
at ServerResponse.clearCookie (C:\Users\user\source\repos\MyProject\node_modules\express\lib\response.js:835:15)
at App.removeCookie (C:\Users\user\source\repos\MyProject\lib\core\app.js:159:16)
at DatabaseProvider.logout (C:\Users\user\source\repos\MyProject\lib\auth\provider.js:88:18)
at App.logout (C:\Users\user\source\repos\MyProject\lib\modules\auth.js:48:25)
at async App._exec (C:\Users\user\source\repos\MyProject\lib\core\app.js:752:22)
at async App._exec (C:\Users\user\source\repos\MyProject\lib\core\app.js:716:9)
at async App.exec (C:\Users\user\source\repos\MyProject\lib\core\app.js:682:5)
at async App.define (C:\Users\user\source\repos\MyProject\lib\core\app.js:664:5)
How to reproduce
- Create an Oauth security provider with AWS Cognito, which works and signs users in properly
- Create a signout API endpoint which just does a sign out action for your security provider, from a signed in account
- Whole app crashes with error message above.