-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Error When Getting Person Info in Sandbox Mode #29
Comments
Have you tried this without |
Thanks for the quick reply @dyihoon90, If I remove Bearer I get the following error Requesting {
method: 'get',
url: 'https://sandbox.api.myinfo.gov.sg/gov/v3/person/S***1816A/'
}
Responded {
method: 'get',
url: 'https://sandbox.api.myinfo.gov.sg/gov/v3/person/S***1816A/'
}
Error verifying person data from Myinfo {
name: 'Error',
message: 'Algorithm not allowed: undefined',
stack: 'Error: Algorithm not allowed: undefined\n' +
' at /Users/tamirshklaz/Documents/Programming/Strive/WhatsApp/community/node_modules/node-jose/lib/jwe/decrypt.js:141:37\n' +
' at processTicksAndRejections (internal/process/task_queues.js:97:5)\n' +
' at async Promise.all (index 0)'
} I included bearer because in the documentation https://github.com/GovTechSG/singpass-myinfo-oidc-helper under "MyInfoRequest" it says to prefix the access token with Bearer. However, that isn't said for the MyInfoHelper, so not sure if it is needed or not. |
Hello, I am facing the same issue as well with the exact same errors. |
sorry for the late reply. can provide the library version you all are using? |
Hey @TamirShklaz some observations from my end:
This seems to suggest either a faulty |
The Error
My Environment
I'm using the latest version of NextJS with node v14
I'm setting up the Helper like this
The error occurs when I call
helper.getPerson()
The text was updated successfully, but these errors were encountered: