Skip to content

Commit

Permalink
catch async errors in sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
shuowu committed Feb 3, 2022
1 parent 6778250 commit 6f57d4b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"cors": "^2.8.5",
"js-yaml": "^4.1.0",
"dotenv": "^10.0.0",
"express-async-errors": "^3.1.1",
"@okta/okta-auth-js": "*"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const express = require('express');
const session = require('express-session');
const mustacheExpress = require('mustache-express');
const path = require('path');
require('express-async-errors');
const {
userContext,
authTransaction,
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9052,6 +9052,11 @@ expect@^27.0.2:
jest-message-util "^27.0.6"
jest-regex-util "^27.0.6"

express-async-errors@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/express-async-errors/-/express-async-errors-3.1.1.tgz#6053236d61d21ddef4892d6bd1d736889fc9da41"
integrity sha512-h6aK1da4tpqWSbyCa3FxB/V6Ehd4EEB15zyQq9qe75OZBp0krinNKuH4rAY+S/U/2I36vdLAUFSjQJ+TFmODng==

express-session@^1.17.1:
version "1.17.2"
resolved "https://registry.yarnpkg.com/express-session/-/express-session-1.17.2.tgz#397020374f9bf7997f891b85ea338767b30d0efd"
Expand Down

0 comments on commit 6f57d4b

Please sign in to comment.