Skip to content
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

Fix express sample so post_assert callback doesn't throw an error #183

Closed
wants to merge 2 commits into from

Conversation

adamsea
Copy link
Contributor

@adamsea adamsea commented Aug 3, 2019

Based on the conversation in #115 I found that the Express sample in the README also has the same issue. Both name_id and session_index are undeclared and will throw in error in strict environments. Pretty straightforward fix that'll make the sample code a bit more portable. :)

@NeoRoth
Copy link

NeoRoth commented Dec 17, 2021

A big thank you, your fix saved me!

mcab added a commit that referenced this pull request Oct 15, 2022
- Closes #183. Addresses some issues with using the example in strict mode.
- Closes #231. Replaces Buffer() with Buffer.from().
- Closes #233. Uses underscore in a manner more compatible with TypeScript.
- Closes #238. Replaces body-parser with urlencoded() for express >=4.
- Adds maintenance notice.
@mcab mcab closed this in cf7e7a1 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants