Skip to content

Commit

Permalink
fix: OpenIdConnectError also returns session_state
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Sep 16, 2018
1 parent 0323021 commit 95fae3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/open_id_connect_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class OpenIdConnectError extends Error {
error_description,
error,
error_uri,
session_state,
state,
scope,
}, response) {
Expand All @@ -17,7 +18,8 @@ class OpenIdConnectError extends Error {
(error_description && { error_description }),
(error_uri && { error_uri }),
(state && { state }),
(scope && { scope })
(scope && { scope }),
(session_state && { session_state })
);

Object.defineProperty(this, 'response', {
Expand Down

0 comments on commit 95fae3d

Please sign in to comment.