You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
TypeError: Cannot destructure property 'profile' of 'lookUpByAuthCode(...)' as it is undefined.
at C:<truncated>\node_modules@opengovsg\mockpass\lib\express\oidc\v2-ndi.js:437:17
Node.js v22.8.0
[nodemon] app crashed - waiting for file changes before starting...
To Reproduce
Steps to reproduce the behavior:
npm install module
npm start module
Get code from authorization endpoint
Send a request to token endpoint
Expected behavior
Response from token endpoint, if the profile is defined properly.
Screenshots
The text was updated successfully, but these errors were encountered:
Are you running with MOCKPASS_STATELESS set to false or unset? If so, was the mockpass process restarted / a different process in between getting the auth code from authorization endpoint and sending it to token endpoint?
If not, could you provide the mockpass version and which profile is being used to trigger this crash?
I am using default configuration, so I presume the below (some referenced from readme):
MOCKPASS_STATELESS: not set
Mockpass process restarted: nope. npm start -> get auth code from auth endpoint -> send client assert JWT and auth code request to token endpoint -> TypeError occurred.
Different process between auth code from auth endpoint and sending it to token endpoint: nope. Default configuration.
Mockpass version: @opengovsg/[email protected]
Profile: first profile in MockPass' static data
Describe the bug
TypeError: Cannot destructure property 'profile' of 'lookUpByAuthCode(...)' as it is undefined.
at C:<truncated>\node_modules@opengovsg\mockpass\lib\express\oidc\v2-ndi.js:437:17
Node.js v22.8.0
[nodemon] app crashed - waiting for file changes before starting...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Response from token endpoint, if the profile is defined properly.
Screenshots
The text was updated successfully, but these errors were encountered: